You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 16, 2025. It is now read-only.
* feat(sugification): add compound reference support
resolves#17
* chore(ReADME): update references data type to String or Array
* chore(README): add new `skipUndefinedReferences` setting
Copy file name to clipboardExpand all lines: README.md
+2-1Lines changed: 2 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -67,8 +67,9 @@ This will listen for any record created or updated in the article content type a
67
67
| contentTypes | The Content Types to add auto slugification and search findOne by slug search utility to | Object | {} | No |
68
68
| contentTypes[modelName]| The model name of the content type (it is the `singularName` in the [model schema](https://docs.strapi.io/developer-docs/latest/development/backend-customization/models.html#model-schema)) | String | N/A | Yes |
69
69
| contentTypes[modelName]field | The name of the field to add the slug | String | N/A | Yes |
70
-
| contentTypes[modelName]references | The name of the field that is used to build the slug| String | N/A | Yes |
70
+
| contentTypes[modelName]references | The name(s) of the field(s) used to build the slug. If an array of fields is set it will result in a compound slug | String or Array| N/A | Yes |
71
71
| SlugifyWithCount | Duplicate strings will have their occurrence appended to the end of the slug | Boolean | false | No |
72
+
| skipUndefinedReferences | Skip reference fields that have no data. Mostly applicable to compound slug | Boolean | false | No |
72
73
| slugifyOptions | The options to pass the the slugify function. All options can be found in the [slugify docs](https://github.com/sindresorhus/slugify#api)| Object | {} | No |
0 commit comments