Looper json

I would like to connect the buttons to the id of each section to scroll there. How can I create an anchor id in the json file?

Hello @xonetit,

Thanks for writing to us.

The feature that you want would require custom development. I would suggest you contact a developer who can assist you with your concen. Please note that we don’t provide custom development support. It is out of the support scope.

Thanks for understanding

where i find the riferements to these code eg: {{dc:looper:field key=“something”}}

and i keep have problem whit these space

Hi @xonetit,

You can find the detailed documentation on Looper, JSON and how you can get the attribute values within the Looper Consumer.

In your case the JSON might be something like the following one.

[
    {
        "section_id":"test"
    },
    {
        "section_id":"test1"
    },
    {
        "section_id":"test2"
    },
    {
        "section_id":"test3"
    }
]

And you can get the value in the Looper Consumer elements by using the following code.

{{dc:looper:field key="section_id"}}

I have tested the above code in my local environment and it worked perfectly fine.

Hope it helps.
Thanks

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.