Dec 30, 20202:50 AM - edited Dec 30, 20208:40 PM
Member
problem with hubspot identifier
SOLVE
Good day,
I am doing a repeater in the repeater module and using the unique identifier {{ name }} and {{loop.index}}
the code is roughly like that
<section class="module">
<div class="repeater-{{ name }}">
{% for item in module.repeater %}
<div class="card-{{ loop.index }}">
{% for item2 in item.card %}
<div class="card-item">
......
And then I wanted to make it customizable by adding the setting in the left side while using it. But then the card of first and second item in first repeater is affeted by first item's setting.
Then, while creating the second repeater, the item setting in the first repeater is unable to modify and the second repeater's first item will affect the first repeater.Then, the second item insecond repeater will affect it own item
Thinking that it is because of the unique id, thu, wanted to ask whether anyone have any idea?
PS: I had done the setting for the first and second repeater. And the problem that I faced is in the card setting of the second repeater.
I put the {{ loop.index }} at the card item there as I wanna make each card item editable. The result: second repeater's first item affect first repeater's first item; second repeater's second item affect its own.
Previously I didn't put the {{ loop.index}} in the card item, the result is like this: First repeater's card setting = unusable; second repeater's first item setting affect first repeater ; second repeater's second item affect second repeater;
anything that starts with app will require a person to be a user on the portal. if you could put it on a dummy page and send a preview link that would be best!
@kyKaq in addition to full code, if you have link to a working example of the issue, that would be helpful to fully illustrate the problem. Agreeing with @Anton , so far with the code there should be no issue with targeting.