Select dataset type when adding new data
Project description
ckanext-create_typed_package
Add dataset type selector to the “Add dataset” button.
![Type selector](selector.png)
Installation
To install ckanext-create_typed_package:
Activate your CKAN virtual environment, for example:
. /usr/lib/ckan/default/bin/activate
Install the ckanext-create_typed_package Python package into your virtual environment:
pip install ckanext-create-typed-package
Add create_typed_package to the ckan.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 Apache on Ubuntu:
sudo service apache2 reload
Config settings
# Build list of package types using ckanext-scheming API instead of # internal CKAN's package_type registry # (optional, default: false). create_typed_package.use_scheming = true # Additional types that are not are not automatically added to the # list for some reason # (optional, default: []). create_typed_package.additional_types = custom_type another_type # Package types that need to be excluded from the list of available # types # (optional, default: []). create_typed_package.exclude_types = custom_type another_type # After clicking on "Add datset" button redirect user to special # page with dataset type selector instead of using in-place modal # (optional, default: false). create_typed_package.use_separate_route = true # URL where the special page with dataset type selector will be registered. # (optional, default: /dataset/select-type). create_typed_package.route_path = /create-package/select-type
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for ckanext-create_typed_package-0.0.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 663b918114305836838fd9a2b1c9542c36da9a50fb02a5d34cdb9aeecfbfd95c |
|
MD5 | 2ea97249a00798983db19e76b07bac7c |
|
BLAKE2b-256 | cc6669133af4f48efc43d3284a3cf767171951d0e58fb3de3800db29ea30901a |
Close
Hashes for ckanext_create_typed_package-0.0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4078cbd74d8577203d1c552b63676a23c85b6c40ecb9e87ca568a8b4745c1f05 |
|
MD5 | 30d061af35ef0584f32db23a73084681 |
|
BLAKE2b-256 | be06a2ca6c18fe2112d51da745468d8300f64c5259402bd15c521c5aa7f2066e |