Hi,
I am wondering if it’s possible to loop a group inside the looped parent group.
I get this error
![]()
Please help me how can I do it
Thanks in forward
Kind regards
Farid
Hi,
I am wondering if it’s possible to loop a group inside the looped parent group.
I get this error
![]()
Please help me how can I do it
Thanks in forward
Kind regards
Farid
Hey @Farid
Could you post more of your code? The yellow indicates a warning, not an error
@Bryantworks , @Anton can you all lend a hand ![]()
Hi @dennisedson
Yes, sure! Here are other screens from my job.
Actually, my goal is to have a group of filters, which each filter has a group of accordions inside. In this case, Filter Group has a loop that works fine and an accordion group inside the filter group has also loop and shows nothing in output.
Please tell me if it’s possible at all to have a repeat group inside another repeated group.
Thanks in forward
My best regards
Farid
Hi @Farid you just need to use a nested for loop:
{% set fils = module.fil %}
{% for fil in fils %}
{{ fil.filter_title }}
{% for accordion in fil.accordion %}
..
{# accordion code here #}
..
{% endfor %}
{% endfor %}