Customized Theme of CKAN Data Catalog of HFT Stuttgart
The extension and files for the customization are structured as follows in the ckan
source code's parent directory:
- ckanext-theme_hft
- ckanext
- theme_hft
- assets
- theme.css
- webassets.yml
- public
- (pictures).jpg/png
- templates
- home
- index.html
- snippets
- promoted.html
- base.html
- header.html
- footer.html
- home
- plugin.py
- assets
- theme_hft
- setup.py
- ckanext
Steps to implement the customized theme
- Run the following command to create a new extension and place its directory in the
ckan
source code's parent directory:ckan generate extension
- New extension name:
ckanext-theme_hft
- New extension name:
- Put the files in this repo to the their respective directories.
- Go to
ckanext-theme_hft
directory and run the following command:python setup.py develop
- Add the new plugin to the ckan.plugins setting in
/etc/ckan/default/ckan.ini
file:ckan.plugins = stats text_view recline_view theme_hft
- Start CKAN
ckan -c /etc/ckan/default/ckan.ini run