Jump to:

23473 Posts in 18941 Topics by 2878 members

General Questions

SilverStripe Forums » General Questions » Gridfield loop and count in template

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1 2
Go to End
Author Topic: 2029 Views
  • kinglozzer
    Community Member
    139 Posts

    Re: Gridfield loop and count in template Link to this post

    $Pos won't work when you're doing $Top. $Pos is the position in the loop, as soon as you use $Top, you take it out of that scope so it's looking for a variable called $Pos outside of the loop - it doesn't exist there.

Page: 1 2
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.