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

Unable to make it works #89

Closed Rombond closed 1 year ago

Rombond commented 1 year ago

Hey,

Completly fresh new install of strapi in 4.6.0, then install slugify, then create a model "test" with two textfields, one named "title" other one named "slug". When i create and publish a test, slug field is null.

Here is my config file :

module.exports = ({ env }) => ({
    slugify: {
      enabled: true,
      config: {
        contentTypes: {
            test: {
                field: 'slug',
                references: 'title',
            },
        },
        shouldUpdateSlug: true,
        slugifyWithCount: true,
        skipUndefinedReferences: true,
      },
    },
});

Have i done something wrong ?

Rombond commented 1 year ago

Oh my bad, my config file was named "plugin.js" and not "plugins.js"