This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.

m.paniez9292
m.paniez9292

Hi all,

I'm using Static Pages to create my new theme. I have a YAML file to make my static page structure and I would like to make a repeater in a repeater. :

section_spheres:
  type: repeater
  prompt: Add Sphere
  form:
    fields:
    ....
      section_spheres_buttons:
        type: repeater
        prompt: Add Button
        form:
          fields:
          ...

In the backend, in "Pages", all works fine (and I have the right file generated), but I don't understand how to have my values in my twig template. I have the first level values (with a {% for fields in data.section_spheres %}), but how to do for the second level ?

Thanks

1-1 of 1

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.