CMS Development

kyKaq
Miembro

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 Me gusta
1 Soluciones aceptada
piersg
Solución
Asesor destacado

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.

Ver la solución en mensaje original publicado

2 Respuestas 2
kyKaq
Miembro

Problem with repeater unique id

resolver

It solves the problem, thanks for your solution

 

0 Me gusta
piersg
Solución
Asesor destacado

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.