Accessing repeater data inside related content

  • Hello,


    I'm currently trying to display content from a repeater using perch:related. When outputting data that is not within the repeater, everything seems to work. However, when trying to display the repeater fields, nothing works.


    Here are my templates -

    form.html


    form_layout.html

    Code
    1. <perch:related id="formNames" collection="Forms" label="Choose a form name from the list below:" />
    2. <perch:content id="formTitle" />
    3. <perch:repeater id="fields">
    4. <perch:content id="field" type="text" />
    5. </perch:repeater>
    6. </perch:related>



    blocks.html

    Code
    1. <perch:blocks>
    2.     <perch:block type="forms" label="Form">
    3.         <perch:template path="content/form_layout.html">
    4.     </perch:block>
    5. </perch:blocks>


    Finally, when I use `<perch:showall>` within the `form_layout.html` template I can see the array of content is there.



    Is there something I'm doing wrong or is this simply not possible?


    Cheers,

    Chris

  • drewm

    Approved the thread.