• Resolved viniciushc20

    (@viniciushc20)


    Hello, I’ve created a Repeater item, and under it, I added 4 child controls.

    In each of these 4 items, I’ve set a NAME to be activated in the code. However, when I go to search for this item further down in the code section, the system doesn’t automatically find it.

    Even when I force it by using {{namehere}}, when I edit the form in the post and publish it, nothing shows up on the website.

    In other words, it’s not recognizing the items that are below and linked to the Repeater. Even manually entering the exact names, when I publish it on the website, nothing appears; it simply doesn’t pull the information I’ve placed in the form. Does anyone know how to solve this?

    Detail: The Repeater itself is recognized to add the {{ }} key in the code; the other items below are not.

    Thanks.

Viewing 1 replies (of 1 total)
  • Plugin Author Nikita

    (@nko)

    Hi,

    The repeater is like an array of arrays, so you must always use the for loop. For example, this will not be valid:

    {{repeater.inner}}

    This one, is valid for the first repeater item:

    {{repeater.0.inner}}

    Examples with loops see here – https://www.lazyblocks.com/docs/blocks-controls/repeater/

    p.s. our code editor autocompletion does not suggest repeater childs; this is why you don’t see these controls. Just use it manually.

    Regards,
    Nikita.

Viewing 1 replies (of 1 total)
  • The topic ‘I can’t activate the NAME of Child controls in a Repeater within the code’ is closed to new replies.