Unique default content per each default object instantiated from a repeatable group module.
SOLVE
Hi,
I have a module with a repetable group. I set the default object count to 9 in the repeater options. I would like to give each of the 9 objects their own initial default content. Currently, each object pulls in the default content from the fields default content within the group. See attached photos. How can I give the 9 default instances their own default content?Current values (pulled in from default field content)Values I would like to be default for each of the 9 default objects
While it is not possible to give items in a repeater field their own default content, you can do this on the template level. Once you add the module to a template you are able to make edits to the module, and the content you add/change in the module will stick to the template, which will transfer over to any pages created with that template.
Be sure to refresh the page editor before adding a new instance of this module, and then you should see 4 repeater objects if you add a new instance of the module to the page.
Be sure to refresh the page editor before adding a new instance of this module, and then you should see 4 repeater objects if you add a new instance of the module to the page.
Unique default content per each default object instantiated from a repeatable group module.
SOLVE
Hi @tjoyce, i'm having the same issue that I would like to give unique values to repeated items. For me I would like to change a colour for each of the items. Is that also possible with JSON? And what of the code you gave do I need to adjust?
While it is not possible to give items in a repeater field their own default content, you can do this on the template level. Once you add the module to a template you are able to make edits to the module, and the content you add/change in the module will stick to the template, which will transfer over to any pages created with that template.