@devx-strapi/strapi-slug-creator
v0.1.0
Published
Sync and create slugs for your Strapi content types.
Readme
strapi-slug-creator
Sync and create slugs for your Strapi content types.
Installation
You can install the plugin using either Yarn or npm:
yarn add @devx-strapi/strapi-slug-creatorIn ./config/plugins.ts, add the following configuration:
export default () => ({
// ...
'strapi-slug-creator': {
enabled: true,
config: {
applyToContentTypes: [
'api::treaty.treaty',
'api::definitions-category.definitions-category',
'api::institutional-category.institutional-category',
'api::term.term',
'api::page.page',
'api::institutional-arrangements-and-governance.institutional-arrangements-and-governance',
'api::verification-tool.verification-tool',
'api::verification-tools-and-technique.verification-tools-and-technique',
],
},
},
// ...
})Configuration
The plugin accepts a configuration object with the following options:
applyToContentTypes: An array of content type UIDs to which the slug creation should be applied.fieldName: The name of the slug field. Default isslug.titleFields: An object mapping content type UIDs to the fields used to generate the slug. Default is{}. (ex:{ 'api::page.page': 'title' })
