Skip to content

Latest commit

 

History

History
44 lines (34 loc) · 1.23 KB

README.md

File metadata and controls

44 lines (34 loc) · 1.23 KB

Slug Generator

slug-widget

This extension enables to generate a slug using the title of the entry. It also checks whether or not any duplicates across the other entries of the same content type exist to warn users before publishing.

Note: In order to prevent publication whenever another entry has the same value for the field, it is advised to use the "Uniqueness" validation constraint. It can be combined with this extension.

Installation steps

Ensure you checked the samples requirements listed here.

Install dependencies if not done already through npm install.

You then need to update the Makefile, uncomment and update the following line:

export SPACE=<id of space you want to install the extension for>

Then do the following:

make create

Updating the extension

If you make any changes to the code of the extension, you may push these updates to Contentful by calling:

make update

Debugging in local environment

If you wish to run the extension from your local environment for debugging purposes, you may use the following commands:

make update-dev
make serve