Skip to main content

Select dataset type when adding new data

Project description

Tests

ckanext-create_typed_package

Add dataset type selector to the "Add dataset" button.

Preview

Installation

To install ckanext-create_typed_package:

  1. Install the ckanext-create_typed_package Python package

     pip install ckanext-create-typed-package
    
  2. Add create_typed_package to the ckan.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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ckanext_create_typed_package-0.3.0.tar.gz (21.1 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file ckanext_create_typed_package-0.3.0.tar.gz.

File metadata

File hashes

Hashes for ckanext_create_typed_package-0.3.0.tar.gz
Algorithm Hash digest
SHA256 7623e579dea65c998346d5ecd081d7485dfc87e707679e322a60c137cf3edd94
MD5 9295de822e550675329283ec33b87e2b
BLAKE2b-256 e7869f32b53cb515c3e633851753550db0e1db5ac8de31cc2bad0495a1278915

See more details on using hashes here.

File details

Details for the file ckanext_create_typed_package-0.3.0-py3-none-any.whl.

File metadata

File hashes

Hashes for ckanext_create_typed_package-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6ec8e08e50cdb6c69725e666c619a2f6da9c042750242c7a411aefd447600411
MD5 3bf600acb80925894aba1aeca5154b9a
BLAKE2b-256 84f83a9e7a9c09fa3fc315692f28e0b23845897bfab059b232c567a841453b3d

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page