Select dataset type when adding new data
Project description
ckanext-create_typed_package
Add dataset type selector to the "Add dataset" button.
Installation
To install ckanext-create_typed_package:
-
Install the ckanext-create_typed_package Python package
pip install ckanext-create-typed-package
-
Add
create_typed_package
to theckan.plugins
setting in your CKAN config file.
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
# Custom label for dataset type. It will be used by `ctp_list_types`
# action and, as result, by the type-picker UI widget. Labels provided in a
# form `create_typed_package.label_for.<TYPE>`, where machine-name for a type
# is used instead of `<TYPE>`.
# (optional, default: tk._(type_machine_name)).
create_typed_package.label_for.dataset = Publication
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.5.post1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | d70f98cf8d175f9fda6434fcb93305bd2a5b4ff2de79afaf86cb50b827609f36 |
|
MD5 | 9d1918a17a8e908cdd2f44b996c927f2 |
|
BLAKE2b-256 | 83faa1d75fe7600392b52a0b066babd2d46eced8592473e275b6cc8bb5b62b03 |
Close
Hashes for ckanext_create_typed_package-0.0.5.post1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4c8f57c9283ed999513c5924e7a1d16aaa2117ce8bfdfb973d61e594afba2058 |
|
MD5 | d4bcfe9e0dc460d778a91c3c66b5db04 |
|
BLAKE2b-256 | 8e5da92eceb09287b7d078013b836b8dfc0f6beb3b0cc97061351a58c7599e79 |