Closed SoftCreatR closed 2 years ago
Nvm, I found the problem. It wasn't clear, that I have to add a field slug
as well. I wonder, if this field could be hidden from content creation, or be read-only, so that only this plugin is able to modify it?
Hello @SoftCreatR,
At this time the field must be created in the admin for it to work as you have discovered. Their is a note about this in the configuration section of the docs.
Regarding setting the field to read only or hiding it, I have not found a way to do this via a plugin. The only current way to limit is is via the Role settings in Settings -> Administration Panel -> Roles.
Their is a note about this in the configuration section of the docs.
I know. But I misunderstood that part. But it's all good now :)
Regarding setting the field to read only or hiding it, I have not found a way to do this via a plugin. The only current way to limit is is via the Role settings in Settings -> Administration Panel -> Roles.
What about a custom field (shipped by the plugin, or a separate plugin) that is read-only?
At the moment custom fields are not officially supported.
We could add a readonly field provided by the plugin but users would need to add it manually to the schema which is not ideal.
As the role settings are available for fields I would say we leave it for now and it can be discussed further once custom field support is released.
Once its released the contentTypes part of the settings can probably be removed altogether.
Maybe, I'm just too stupid, but I can't make it work.
Installed the plugin via
Added it to the configuration:
and rebuilt it via
In Strapi (4.1.1, node v16.14.0), I can see that the plugin is enabled, but I can't query anything:
What am I doing wrong?
Oh and yes, a (collection) type named
article
(resp.articles
in singular) exists, and it has atitle
attribute.