Hi,
My simplified use case is this:
I have a User object and want to have a list of quotes as string.
So User → quotes (type list of string).
This simple, yet can’t be done in Strapi. I can do it only if I overengineer and create another content type quote and link via relations or if I use a dynamic zone with another nested component that just has a text string!
My specific questions are:
- is it possible to use type: string for a dynamic zone (haven’t found so far)?
- Is it possible or planned to allow using
array of simple types
for a particular content-type key ?, example array - If no, where can I create a feature request? I believe this will reduce complexity, hacky solutions and make Strapi even easier and faster to use
My current workarounds until I find a proper solution:
Ugly workaroundsat the moment is by creating components named SimpleText
like below
{
"collectionName": "components_core_simple_text",
"info": {
"name": "SimpleText",
"displayName": "Simple text",
"icon": "text-height",
"description": ""
},
"options": {},
"attributes": {
"content": {
"type": "string"
}
}
}
only to be able to assign an array of text to a particular content type! and using this inside a dynamic zone in the User
content type
"quotes": {
"pluginOptions": {
"i18n": {
"localized": true
}
},
"type": "dynamiczone",
"components": [
"core.simple-text"
],
"required": true
},