Pages

Tuesday, September 13, 2011

Movable Type: Getting the Loop Counter

<mt:if name="__counter__" op="mod" value="3" eq="0">Something HTML Output</mt:if>

So, the "__counter__"  is the way to find out the Loop count. It can be a loop, inside <mt:Entries> or what ever is.

In the Above code, if the counter%3 == 0, Some HTML Output will be t
he parsing output.

No comments :

Post a Comment