Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Module unique_in_loop inside nested for loop
Contributor
May 17, 2018 9:32 AM
I currently have a nested for loop and it seems like module parameter unique_in_loop only works for the inner most loop. I would like it to be unique in respect to both loops. Is there any workaround to this?
Example: This will return 3 unique text modules that will be the same 3 for each outer loop iteration.
{% for i in range(3) %} {% for i in range(3) %} {% text "my_text" no_wrapper=True, unique_in_loop=True %} {% endfor %} {% endfor %}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content