Quantcast
Channel:
Viewing all articles
Browse latest Browse all 4235

Gridfield loop and count in template

$
0
0

I have a gridfield and would like to count the objects and do something if count = 2.

eg:

<% loop Objects %>
$title
if ($count = 3)
<br />

<% end_loop %>

Is the above possible?


Posted to: Gridfield loop and count in template | Show Thread | Post Reply


Viewing all articles
Browse latest Browse all 4235

Trending Articles