This plugin simplifies the process of creating slugs for your Content Object. It’s particularly useful when you want to generate slugs automatically based on existing data within a Content Object (e.g. the title of a blog post).
In the Content Object form, look for the refresh icon next to the slug field. If you’re creating a new object and the field is currently empty, it will be auto-filled. If you’re editing an existing object or the field contains data, click the refresh icon to regenerate the slug.
To manage a plugin, you must first add it to your plugins. Click the "+" icon to add the plugin to your library and click the "Manage" button. It will open the plugin settings.
Field descriptions:
Content Type
- Defines the type of objects for which the slug will be generated.Slug source field
- Determines the field on which the slug will be based.Target field
- Specifies the field to which the slug will be entered.
Dev environment is configured to use:
prettier
- best used with automatic format on save in IDE, remember to runyarn format
before commiting changeseslint
- it is built into bothstart
andbuild
commands
The plugins are built into a single dist/index.js
file. The manifest is copied to dist/plugin-manifest.json
file.
Warning: While developing, you can use https://localhost:3053/plugin-manifest.json
address to load the plugin manifest. Make sure your browser trusts the local certificate on the latter, to be able to use it e.g. with https://editor.flotiq.com
Hint: You can use localhost url from development mode https://localhost:3053/index.js
- Open Flotiq editor
- Open Chrome Dev console
- Execute the following script
FlotiqPlugins.loadPlugin('plugin-id', '<URL TO COMPILED JS>');
- Navigate to the view that is modified by the plugin
- Open Flotiq editor
- Open Chrome Dev console
- Paste the content of
dist/index.js
- Navigate to the view that is modified by the plugin
Hint: You can use localhost url from development mode https://localhost:3053/plugin-manifest.json
- Open Flotiq editor
- Add a new plugin and paste the URL to the hosted
plugin-manifest.json
file - Navigate to the view that is modified by the plugin
If you wish to talk with us about this project, feel free to hop on our .
If you found a bug, please report it in issues.