223
Dynamic Zone in Components
A
Alexandre Retourne
It could be great to add context or let the users create their contents with little constraints. For example, a grid could have differents components inside like download cards or profile cards. Making a grid component for each variation is not optimal so it would make the UI clearer with fewer components. Lastly, the front-end developer could develop a component manager from front-end and it would manage all content to build the website like legos. The developer would maintain the content builder from strapi POV and the users can immediately use the news components or make change on already launched content.
Activity Feed
Sort by
Daniele Polacco
Are there any updates to have this feature with the latest releases?
Q
Quentin Henaut
With my friend Joshua Vayer, we work on a solution to use dynamic zone in components:
I share you the following github repository based on strapi 4.2.0 :
Changed files in @strapi folder: https://github.com/West-Solutions/strapi/pull/1
There is a lot of limitation with this solution. you can improve it and share.
The repository contain a functionnal application based on the tutorial describe in the readme.
Create a new page to test it:
Do not forget to use strapi-init script then build script
@Ankit Kumain:


A
Ankit Kumain
Quentin Henaut: Thanks for sharing.
Will Scheidegger
Simple use case for content management (see screenshot below):
- Page contains an arbitrary number of different components (dynamic zone)
- One of these components is a tab group
- Each tab can again contain multiple components
Not only the "no dynamic zones in components" limitation is preventing this. Also the "only one level of nested components" limitation makes Strapi only a fit for the simplest websites.
Too bad, because otherwise I really like it.

Anthony Rubio
As everyone here, I feel lost. Especially when I see that the team doesn't want to implent that. Not because of a lack of time but because they think it should not work this way.
Let me explain to you a quick way I would have use this. My customer have type of sections, vertical and horizontal. In each section, we have content and illustration.
Illustration is sometimes a real image but sometime another component. Like a tab of anything like that. Would love to ear how to do that dynamically.
You should listen to the community as it's one of the most upvoted features.
But I can understand that you have your own vision of YOUR product. I will still use Strapi but it means that every time my customer wants a new combinaison, I have to create it.
Marco Autiero
Anthony Rubio: Hi Anthony, thank you for your message.
I'm sorry that you're waiting for this feature to be available, and that you're somehow forced to adopt a workaround. I want to assure you that our attention is also on this feature. For now, we already have many initiatives in progress (as you can see from our roadmap), but at the same time, we're monitoring feedback like yours, to have additional elements for making future choices, eventually working on a solution that would fit the need that you described.
Rishi Raj Singh
Any updates here? Need this feature!!
Q
Quentin Henaut
With a little customization of strapi and it lib it's possible ta add this feature by yourself... But this is not a long time solution
I hope this will be implemented soon.


A
Ankit Kumain
Quentin Henaut: Can you please share what changes are required to achieve that.
Q
Quentin Henaut
Ankit Kumain: i'll try to prepare for you something. but it's compatible with V4.2 only. it has to be updated for 4.5.
And request some manual action:
- add dynamic zone in dynamic zone has to be configure inside json and not by using strapi interface.
- after installation using npm or yarn, some files in @strapi/admin have to be replace (i'll add strapi-init script).
Result in image

Q
Quentin Henaut
don't forge to modify deep populate function in api:
A
Ankit Kumain
Quentin Henaut: sure that would be great help.
Q
Quentin Henaut
Ankit Kumain: i'll add it at the top of the topic by a new post
Josh Corbett
The lack of this fundamental feature is the reason I quickly left Prismic, and now the same for Strapi. Guess I'm going back to storyblok so I can pay $500/mo for a feature Strapi supports but doesn't allow in the UI because of their opinions on how it "should work"
B
Brianfbento
Aurélien Georget Any chance we can get the team to change its mind about this feature as it now has 200 votes? The community seems to really want this feature. Maybe put it behind a flag with a warning about possible performance issues.
Aurélien Georget
Brianfbento: Clearly, it's something we didn't expect, I pinged the team in charge of the Content Authoring Experience :)
Kim Martini
Was a bit surprised that this is still not available. Is there any workaround?
Hazel Eythorsdottir
This is a huge dealbreaker for my team. We where really excited to use strapi, but not having this feature makes it essentially unusable. We're switching over to wagtail for the time being :/
Load More
→