CKAN theme for the CD² metadata portal (cloned from ckanext-dia_theme)
CKAN 2.9.x
Use cd2-ansible to create a fully functional CKAN environment with this theme.
To install the theme in an existing environment:
-
Activate your CKAN virtual environment, for example::
sudo -s . /usr/lib/ckan/default/bin/activate
-
Install the ckanext-cd2_theme Python package into your virtual environment::
pip install ckanext-cd2_theme
-
Add
cd2_theme
to theckan.plugins
setting in your CKAN config file (by default the config file is located at/etc/ckan/default/ckan.ini
). -
Restart CKAN. For example if you've deployed CKAN with Nginx on Ubuntu::
sudo supervisorctl reload && sudo service nginx restart
Any CSS styling changes should be done in the LESS files and NOT directly in the CSS files. Edit the LESS files and compile to CSS using a LESS compiler, i.e.:
npm install -g less
lessc ckanext/cd2_theme/less/main.less ckanext/cd2_theme/fanstatic/cd2_custom.css
Configuration of SOLR, schemas, facets and images is done via cd2-config
The theme contains functionality with several references to specific elements of the CD² meta-data schema, which may cause issues with broader usage. The following pages contain direct references to the CD² meta-data schema, through either explicit HTML references or API calls.
- home/snippets/search.html
- home/snippets/stats.html
- home/layout_custom.html
- snippets/facet_list.html
- snippets/package_item.html
- package/snippets/additional_info.html