boundlessgeo/geonode_ads

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

Homepage:

Size: 1793

Language: Python

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

GeoNode Admin Defined Skin

Allows a GeoNode site administrator to customize various styles and assets through the admin panel's UI. This README covers the following sections:

Installation
  1. Download geonode_ads and pip install from the local geonode_ads directory containing the setup.py file. e.g.:

    install path/to/geonode_ads
    
  2. Import GeoNode ADS settings into GeoNode's settings module:

     geonode_ads.settings import INSTALLED_APPS as GEONODE_ADS_APPS
    
  3. 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
    
    
  4. Import GeoNode ADS urls into your project's urls.py file:

     geonode_ads.urls import urlpatterns as ads_urls
    
  5. Append ads_urls to the beginning of your project's url patterns:

    atterns = ads_urls + patterns(
    remaining urls
    
    
  6. 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.

  7. Sync your database:

    on manage.py syncdb
    
Using ADS

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”.

ADS Options

Textual Elements

“Site Name” and “Tag Line” settings provide text forms for editing these elements. Simply replace the default text and save.

Text Form

Images

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.

Banner Selection

Colors

“Hyperlink Color” and “Navigation Bar Color” provide a color picker menu. Choose a new color from the menu and save.

Color Picker


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.