CMS Development

kyKaq
Membro

Problem with repeater unique id

resolver

I use the html id {{ name }}. However, it returns to the same unique id.

I want to do repeater in repeater. Then the second repeater (inner one) can set the setting such as width and height of the item. The setting can enable me to do somethings like item in first repeater is smaller but the item in second repeater is larger.

PS: I had enable the repeater option of row and Repeater.

kyKaq_1-1605666655262.pngkyKaq_2-1605666717010.pngkyKaq_3-1605666755246.png

 

0 Avaliação positiva
1 Solução aceita
piersg
Solução
Conselheiro(a) de destaque

Problem with repeater unique id

resolver

{{name}} is a default value in HubL that returns the module instance id, as you can see. You could use module-{{loop.index}} which will give you "module-1" "module-2" and so on, for as many iterations as you add.

Exibir solução no post original

2 Respostas 2
kyKaq
Membro

Problem with repeater unique id

resolver

It solves the problem, thanks for your solution

 

0 Avaliação positiva
piersg
Solução
Conselheiro(a) de destaque

Problem with repeater unique id

resolver

{{name}} is a default value in HubL that returns the module instance id, as you can see. You could use module-{{loop.index}} which will give you "module-1" "module-2" and so on, for as many iterations as you add.