strapi-community / strapi-plugin-slugify

A plugin for Strapi Headless CMS that provides the ability to auto slugify a field for any content type.

Home Page:https://market.strapi.io/plugins/strapi-plugin-slugify

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

ErhanAbi opened this issue · comments

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

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.