Name: geonode_ads
Owner: Boundless
Description: Allows a GeoNode site administrator to customize various styles and assets through the admin panel's UI.
Created: 2016-04-26 20:21:42.0
Updated: 2016-11-28 02:24:41.0
Pushed: 2016-05-18 17:48:50.0
Size: 1793
Language: Python
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
Allows a GeoNode site administrator to customize various styles and assets through the admin panel's UI. This README covers the following sections:
Download geonode_ads and pip install from the local geonode_ads directory containing the setup.py file. e.g.:
install path/to/geonode_ads
Import GeoNode ADS settings into GeoNode's settings
module:
geonode_ads.settings import INSTALLED_APPS as GEONODE_ADS_APPS
Add GEONODE_ADS_APPS
before GEONODE_APPS
in your project's settings
module. In GeoNode, it will look something like this:
ALLED_APPS = [
installed apps
GEONODE_ADS_APPS + GEONODE_APPS
And in Boundless Exchange:
ALLED_APPS = GEONODE_ADS_APPS + [
emaining apps
Import GeoNode ADS urls into your project's urls.py
file:
geonode_ads.urls import urlpatterns as ads_urls
Append ads_urls
to the beginning of your project's url patterns:
atterns = ads_urls + patterns(
remaining urls
The ADS template relies on three placeholder images: ads_background.png
, ads_icon.png
, and ads_logo.png
. In order to copy these to your project's MEDIA_ROOT
directory, run the following command:
on manage.py ads_setup
Note: ensure that the MEDIA_ROOT
directory declared in your project's settings.py
file exists.
Sync your database:
on manage.py syncdb
From the Django admin page, you will see a list of options below “Geonode ADS,” including “Banner Image”, “Hyperlink Color”, “Icon Image”, “Logo Image”, “Navigation Bar Color”, “Site Name”, and “Tag Line”.
“Site Name” and “Tag Line” settings provide text forms for editing these elements. Simply replace the default text and save.
The “Banner Image”, “Logo Image”, and “Icon Image” settings contain image forms that can be used to swap out these images on the home page. Simply select a new image from the form and choose to save.
When you visit your home screen, these assets will be replaced with the new image that you selected. Notice that for each image, recommended dimensions are provided beneath the form.
“Hyperlink Color” and “Navigation Bar Color” provide a color picker menu. Choose a new color from the menu and save.