Easy to use DataTables plugin in CKAN with different theme to play around with.
Source code for datatables implementation was forked from an official CKAN Repository
Tested with CKAN Version 2.6 and 2.8
To install ckanext-tableview:
Activate your CKAN virtual environment, for example:
. /usr/lib/ckan/default/bin/activate
Clone repository and install the ckanext-tableview Python package into your virtual environment:
python setup.py install
Add
table_view
to theckan.plugins
setting in your CKAN config file (by default the config file is located at/etc/ckan/default/production.ini
).Restart CKAN. For example if you've deployed CKAN with Apache on Ubuntu:
sudo service apache2 reload
ckanext-tableview has inbuilt themes integrated. To use one, add justicehub_theme
to the ckan.tableview_theme
settings in
your CKAN config file. If not provided, then it will take default theme.
In case if theme is not found, then it will show: "Internal Server Error" in views section
There are mainly 2 steps for adding any custom theme:
- Add theme name in
/tableview/public/resource.config
along with all the resources you want theme to load - Add all relevant css/js files in their respective places inside
/tableview/public/
directory anywhere. By default we personally usetheme
directory insidepublic
for custom styles.
To install ckanext-tableview for development, activate your CKAN virtualenv and do:
git clone https://github.com/justicehub-in/ckanext-tableview.git cd ckanext-tableview python setup.py develop