Jump to:

23453 Posts in 18904 Topics by 2877 members

General Questions

SilverStripe Forums » General Questions » $sort skipped 2

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
Go to End
Author Topic: 283 Views
  • Xazen
    Community Member
    18 Posts

    $sort skipped 2 Link to this post


    I have got some simple lines of code:

    <% control Menu(1) %>
       <li class="$LinkingMode $Sort"><a href="$Link" title="Go to the &quot;{$Title}&quot; page">$MenuTitle</a></li>
    <% end_control %>

    Since every link should have another background I added $Sort to get more control through CSS. But the $Sort variable skipped "2".
    For example:


    $sort returns:
    home: 1
    news: 3
    media: 4
    contact: 5

    I remember there was another link between home and news, which I deleted. I think that might be the problem. Is there a way to fix it ? I need another fixed classname.

    Thanks in advance!

Page: 1
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.