0
Est-il possible d'utiliser le paramètre $P.imagesPerRow
de jTemplates dans la condition {#if}
?
Il soulève l'exception "Uncaught 12" pour moi.
{#foreach $T as record}
{#if $T.record$index % {$P.imagesPerRow} == 0}
</tr>
<tr>
{#/if}
<td class='image-preview-cell' style='width: {$P.cellWidth}; height: {$P.cellHeight}'>
<img src='{$T.record.url}' title='{$T.record.title}' alt='{$T.record.title}'/>
</td>
{#/for}