|
|
1 |
This CKAN Extension demonstrates some common patterns for customising a CKAN instance. |
|
|
2 |
|
|
|
3 |
It comprises: |
|
|
4 |
|
|
|
5 |
* A CKAN Extension "plugin" at ``ckanext/exampletheme/__init__.py`` |
|
|
6 |
which, when loaded, overrides various settings in the core |
|
|
7 |
``ini``-file to provide: |
|
|
8 |
|
|
|
9 |
* A path to local customisations of the core templates and stylesheets |
|
|
10 |
* A "stream filter" that replaces arbitrary strings in rendered templates |
|
|
11 |
* A "route" to override and extend the default behaviour of a core CKAN page |
|
|
12 |
|
|
|
13 |
* A custom Pylons controller for overriding some core CKAN behaviour |
|
|
14 |
|
|
|
15 |
* A custom Package edit form |
|
|
16 |
|
|
|
17 |
* Some simple template customisations |
|
|
18 |
|
|
|
19 |
|