3214 Posts in 848 Topics by 810 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 1134 Views |
-
<% control %> Iterations

10 June 2010 at 9:19am
How to count <% control %> iterations?
For example, if u want to display Staff Articles in the table form. -
Re: <% control %> Iterations

10 June 2010 at 11:53am Last edited: 10 June 2010 11:56am
$Pos in a control will tell you what iteration you are in. ie: $Pos == 1 for the first, $Pos == 2 for the second and so on.
This might help you: http://doc.silverstripe.org/built-in-page-controls#quick_reference
| 1134 Views | ||
|
Page:
1
|
Go to Top |


