White Rock CKAN extension
CKAN extension for the implementation of the White Rock City.
The extension contains the following features:
- Add a custom CSS file
- Add custom pages (contact & suggest dataset forms + follow page) with implementation of iRoutes
- Add public file (images)
- Add custom licence
- Add predefined extra fields at the dataset level
- Support custom templates
Prerequisite
This extension needs the stats extension to be activated with the tracking options. Some links (in the footer) also need the ckanext-pages extension.
pip install -e git+https://github.com/ckan/ckanext-pages.git#egg=ckanext-pages
Configure the plugins:
ckan.plugins = ... stats pages ...
ckan.tracking_enabled = true
The extension has been developed and tested to run with CKAN 2.2.
Installation
Install the extension from GitHub:
pip install -e git+https://github.com/opennorth/ckanext-whiterock.git#egg=ckanext-whiterock
Add the extension in the configuration file:
ckan.plugins = ... wrcommon wrpages wrfacet
Add the custom licence file:
licenses_group_url = file:///path/to/extension/ckanext-whiterock/ckanext/whiterock/licences.json
Set up jobs
Cron jobs for tracker and index rebuilding:
@hourly /usr/lib/ckan/default/bin/paster --plugin=ckan tracking update -c /etc/ckan/default/production.ini > /dev/null
@hourly /usr/lib/ckan/default/bin/paster --plugin=ckan search-index rebuild -r -c /etc/ckan/default/production.ini > /dev/null