Feature Request: Conditionally Blocks in CollectionConfig #2994
SwannHERRERA
started this conversation in
Feature Requests & Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I wanted to share a feature request regarding the blocks field in the CollectionConfig. Currently, it only accepts arrays, but I would like to propose adding support for functions that return an array. This would allow me to dynamically generate blocks based on the slug parameter.
Here is an example of how I envision the updated code:
By introducing this functionality, it would greatly enhance the flexibility of the blocks field and allow for more dynamic content rendering based on the slug value.
Thank you for considering this feature request. I look forward to hearing your thoughts on this matter.
Beta Was this translation helpful? Give feedback.
All reactions