I'm looking to break up every 5 images that our outputted by MIGX into separate divs.
Example:
<div>
<img src="" alt="" />
<img src="" alt="" />
<img src="" alt="" />
<img src="" alt="" />
<img src="" alt="" />
</div>
<div>
<img src="" alt="" />
<img src="" alt="" />
<img src="" alt="" />
<img src="" alt="" />
<img src="" alt="" />
</div>
Looking at various templates and placeholders it looks as if this might be doable out of the box but I can't quite wrap my head around how to do.
Thanks,
Steve
I think this should work:
&tpl
&tpl_n5
<img src="" alt="" />
[[+_last:isnot=`1`:then=`
</div>
<div>
`:else=``]]
&wrapperTpl
or with an additional tplLast
&tpl
&tpl_n5
<img src="" alt="" />
</div>
<div>
&wrapperTpl
&tplLast
[ed. note: Bruno17 last edited this post 11 years, 3 months ago.]