- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Problem with repeater unique id
SOLVENov 17, 2020 9:34 PM - edited Nov 17, 2020 9:35 PM
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.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
Accepted Solutions
Nov 18, 2020 6:37 AM - edited Nov 18, 2020 9:50 AM
{{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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content