XModPro

Bug: <xmod:each> only replaces one token per iteration, ignores {value} if [[Portal:Id]] is used</xm

Phillip Quinlan Phillip Quinlan posted Apr 11, 2019
Active Apr 11 · Viewed 4 times

When using <xmod:Each /> in a template, it only replaces one token per iteration.

E.g. This works

<xmod:Each Delimiter="," Value='[[FuelType]]'>

<ItemTemplate><img src="/Portals/0/Icons/icon-{value}.jpg" style="width: 41px; height: 41px;" alt="{value}" /></ItemTemplate>

</xmod:Each>

But this does not work:

<ItemTemplate><img src="/Portals/[[Portal:Id]]/Icons/icon-{value}.jpg" style="width: 41px; height: 41px;" alt="{value}" /></ItemTemplate>

Notice the [[Portal:Id]] is added, which causes the {value} token to not be replaced for some reason.

Thanks

0 Replies

Loading replies...