strapi-community / strapi-plugin-slugify

A plugin for Strapi Headless CMS that provides the ability to auto slugify a field for any content type.
https://market.strapi.io/plugins/strapi-plugin-slugify
MIT License
45 stars 21 forks source link

What's the difference between this plugin and the strapi native slug field? #66

Closed ErhanAbi closed 2 years ago

ErhanAbi commented 2 years ago

In strapi, a slug can be obtained by defining it on model schema like this

...
"title": {
    "type": "string",
    "required": true
},
"slug": {
    "type": "uid",
    "targetField": "title"
}

This will generate a slug field on the model and in the admin interface we can automatically generate slug based on title

image
ComfortablyCoding commented 2 years ago

The main difference at the moment is compound slugs. You can combine multiple fields to create your slugs. The built in only works with one slug.