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.1.0.tar.gz (20.9 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file ckanext-create_typed_package-0.1.0.tar.gz.

File metadata

  • Download URL: ckanext-create_typed_package-0.1.0.tar.gz
  • Upload date:
  • Size: 20.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4

File hashes

Hashes for ckanext-create_typed_package-0.1.0.tar.gz
Algorithm Hash digest
SHA256 92701a95ea94bc0fe8316c2bd3306e4d965c64465c536420a2d881b04cf5daa1
MD5 57dc13fe4cb7b246132b55020ade3cd7
BLAKE2b-256 6713bcee0c73ae0c179136d9cf2df31401376a08960b723ec88da4a42997c070

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ckanext_create_typed_package-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 23.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4

File hashes

Hashes for ckanext_create_typed_package-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fcc52a850aefc72fe2c8ccdbc3340a70f271b293dfa8d8225fe4b83f4ee5df11
MD5 d131883a5b35ebec13a25e270da62d6b
BLAKE2b-256 08ab719baec6e13d8bde8bb8e62fa707316d36792d570b6868b208f029f51929

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