Skip to content

Auto-populate option for Components & Dynamic Zones #11852

@Mcastres

Description

@Mcastres

Feature request

Please describe your feature request

Having the option to auto-populate or not Components and Dynamic Zones in API responses from the Content-Types Builder.

Capture d’écran 2021-12-08 à 15 25 01

  • I have created my request on the Product Board before I submitted this issue
  • I have looked at all the other requests on the Product Board before I submitted this issue

Summary

Components and Dynamic Zones (and media also) are not populated by default on v4. Why not have the option to auto-populate them?

Why is it needed?

You might always need these fields to be returned in your API response for some Content-Types while not having to populate them manually using populate every time you create some new ones.

ex: Page Content-Type. I will always need to have my components and DZ components (Auto-populate: true)
ex: Restaurant Content-Types. I will not always need my dynamic zones components (Auto-populate: false)

This can also prevent users to create big queries containing dozens of populate params if your Dynamic Zone contains dozens of components.

Suggested solution(s)

Implement a checkbox for auto-populating or not their Components, Dynamic Zones (Media fields?)

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions