Jump to:

22975 Posts in 11620 Topics by 2826 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: 1337 Views
  • kinglozzer
    Avatar
    Community Member
    138 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.

    1337 Views
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.