directus-extension-okam

1.1.0 • Public • Published

directus-extension-okam

See README.md for more details on each extension entries

endpoints

  • preview-endpoint : provides a /preview endpoint for the preview field in a collection

operations

  • okam-check-duplicate-slug : checks for duplicate slug within a single collection across the same language
  • okam-extract-keys : extracts collection/key properties from an object with keys or keys and returns an array of objects {collection, key}
  • okam-page-settings-path : generates an update object to update the path of an element with page_settings, based on the object's route.
  • okam-patch-page-settings : generates an update object to update the slugs of an element with page_settings. It generates a unique slug if there is any conflict.
  • okam-slugify-input : converts a title string to a slug identifier
  • okam-slugify-list : converts a list of object, each with 'from' property, into a list of slug identifiers. { from: 'Original Title', to: 'original-title' }

publish

npm login
npm run build
npm publish --dry-run
npm publish

Package Sidebar

Install

npm i directus-extension-okam

Weekly Downloads

9

Version

1.1.0

License

none

Unpacked Size

216 kB

Total Files

4

Last publish

Collaborators

  • davidpaquet
  • yanmorinokam
  • okam-bot