AndyB
Well-known member
In XF1 we were able to use template code like this:
Is there any way to do similar in XF2?
PHP:
<xen:set var="$i">0</xen:set>
<xen:foreach loop="$posts" value="$post">
<tr class="dataRow">
<xen:set var="$j">{$i}</xen:set>
<td><xen:set var="$i">{xen:calc '{$j}+1'}</xen:set>{$i}</td>
Is there any way to do similar in XF2?