Skip to content

feat: allows having dynamic zones in components#25931

Open
AtiX wants to merge 1 commit intostrapi:developfrom
AtiX:feature/as_dynamicZonesInComponentsDataOnly
Open

feat: allows having dynamic zones in components#25931
AtiX wants to merge 1 commit intostrapi:developfrom
AtiX:feature/as_dynamicZonesInComponentsDataOnly

Conversation

@AtiX
Copy link
Copy Markdown

@AtiX AtiX commented Apr 5, 2026

What does it do?

Allows adding dynamic zones in components, making the overall data model more flexible.

Why is it needed?

This solves a typical use case where strapi is being used as a pagebuilding CMS, closing the gap to other solutions like storyblok.

A typical pagebuilding approach looks like:

  1. Have a page data model
  2. Have multiple blocks defined as components (such as a HeroBlock, ImageAndText, CtaBlock, ...) which are rendered in the frontend, e.g. as individual react components
  3. On the page, have some sort of contentBlocks dynamic zone where those blocks can be placed to build up the page.

Now, the current issue is that those blocks cannot contain dynamic zones themselves. However, for proper pagebuilding, one does need it:

  • Imagine a TwoColumnBlock that just implements a two-column layout without having to care about what is contained "in it" (= defined a leftColumn and rightColumn dynamic zone).
  • Imagine a CtaBlock that stands out visually, which however may contain other content elements itself
  • ...

This PR solves this issue by allowing those dynamic zones in components.

Bildschirmfoto 2026-04-05 um 11 51 55

How to test it?

  1. You should be able to define dynamic zones in the content type builder inside a component
  2. You should then be able to place a component and elements within its dynamic zones.

Related issue(s)/PR(s)

@vercel
Copy link
Copy Markdown

vercel bot commented Apr 5, 2026

@AtiX is attempting to deploy a commit to the Strapi Team on Vercel.

A member of the Team first needs to authorize it.

@strapi-cla
Copy link
Copy Markdown

strapi-cla commented Apr 5, 2026

CLA assistant check
All committers have signed the CLA.

@github-actions github-actions bot added the community Changes and fixes created by community members label Apr 5, 2026
@dosubot dosubot bot added pr: feature This PR adds a new feature source: core:content-type-builder Source is core/content-type-builder package labels Apr 5, 2026
@AtiX AtiX force-pushed the feature/as_dynamicZonesInComponentsDataOnly branch from 61682d8 to 80708e5 Compare April 5, 2026 09:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

community Changes and fixes created by community members pr: feature This PR adds a new feature source: core:content-type-builder Source is core/content-type-builder package

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants