-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FR] add component reference type support #101
Comments
Thanks for the request and suggestion. For now this plugin only supports fields define don the model directly. I will at some point add relational and component support. At the moment their is no eta for that. I am thinking instead to change how the settings work. For reference fields it will allow for a string or object. In object mode you can specify the path and type (field,relation,component) that the reference field is. |
Also requesting support for object reference. Example: We have categories like Each category has a field on it called slug path |
Hi.
No slug is generated for
components
.I have analyzed the 'setting-service.js' file. I developed a possible fix that is working for me (see below).
With that fix, to produce the slug for the fields in a
component
, you have to set the plugin settings file fieldcontentTypes
using the value of thecollectionName
field used in the component configuration file.Strapi: 4.11.4
Strapi Plugin Slugify: 2.3.3
MySQL: 8.0.30 (MySQL Community Server - GPL)
Here is a possible fix to generate a slug for
components
by changing thebuild
method:The text was updated successfully, but these errors were encountered: