Skip to content

Latest commit

 

History

History
56 lines (38 loc) · 2.12 KB

README.rst

File metadata and controls

56 lines (38 loc) · 2.12 KB

This CKAN Extension demonstrates some common patterns for customising a CKAN instance.

It comprises:

  • A CKAN Extension "plugin" at ckanext/example/plugin.py

which, when loaded, overrides various settings in the core ini-file to provide:

  • A path to local customisations of the core templates and stylesheets
  • A "stream filter" that replaces arbitrary strings in rendered templates
  • A "route" to override and extend the default behaviour of a core CKAN page
  • A custom Pylons controller for overriding some core CKAN behaviour
  • A custom Package edit form
  • Some simple template customisations

Installation

To install this package, from your CKAN virtualenv, run the following from your CKAN base folder (e.g. pyenv/):

pip install -e git+https://github.com/okfn/ckanext-example#egg=ckanext-example

Then activate it by setting ckan.plugins = example in your main ini-file.

Orientation