Hi everyone, I am building a Nextjs website using Cockpit as backend. It works great! I have a “Pages” collection which contains top-level pages, for example “About”, “Events”… Currently every page has a “template” field which is used during the build process to select the template to use to render that page. In this phase every template requests a custom fixed set of data from the backend. I would like to skip this and provide the data directly inside the template. It seems that the “Repeater-Set” pair fits my use case: the Repeater field lets me choose the template to use based on a collection of Set fields, then every Set field provides a custom form to fill the data every template needs. I just did a proof-of-concept and it already works just fine. Since in the future I won’t be the one who will add pages nor edit their content I would like to offer the cleanest UI available. For example, the user must not be able to add more than one element to the Repeater field. Currently I have set “limit” option to “1” but the button used to add elements still shows up whenever that limit is reached. An Option field which behaves like the Repeater one makes more sense for this use case.
What do you think? Every thought is very much appreciated, thank you very much!