-
-
Notifications
You must be signed in to change notification settings - Fork 7.7k
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
Array fields for general data types in the Content Type Builder plugin #1125
Comments
I also often need to create multiple items (array or list) in the number/string/text/media fields in Content Type Builder plugin. Is there a way to do this? |
As a workaround, why not create a new contentType and set the relationship of one to many? A little bit of boilerplate, but doable today |
I think it will increase complexity, if there is many items to be listed as array to even base data type such as string and number. |
You're right, currently, this kind of field (array) is complicated to handle with Strapi... I suggest voting for the Plugin - Matrix/Repeater on the vote page. Also, the JSON field could fix the issue in another way... |
I see this post dates back from 2018. However, the solution is to choose JSON and when filling in the actual data, just write an array like |
@BertelsBenjamin how to edit this array like $pull or $push? |
I found the simplest solution to be to just have a EDIT: The reason I opted for this was to allow people less savvy with editing a raw JSON to have simple means of adding in SEO keywords to a post/page |
@BertelsBenjamin |
What is the expected behavior?
How can I create multiple items (array) in the number or string fields in Content Type Builder plugin?
I want same key name/different value pairs, like as array or list.
I want to put multiple datas in one field like as current media field ( It has the option of “Allow multiple files”.)
I selected mongodb as database.
I already was suggested to create new plugin, but I am not expert to handle that.
So with current Content Type Builder, How can I implement following feature.
For example, Product Content has final sold price field with array value, and it is keeping update from client side’s API call. And this is related to Customer content, one Customer can have many Products, one Product can have many Customers.
Can I implement this database and API with this current Strapi CMS ?
I really want to use this CMS for implementing this feature. what is the solution?
Thank you.
The text was updated successfully, but these errors were encountered: