Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » <% If Middle %> in Menu control

Our old forums are still available as a read-only archive.

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

Page: 1
Go to End
Author Topic: 1576 Views
  • bmatzner
    Avatar
    Community Member
    1 Post

    <% If Middle %> in Menu control Link to this post

    Hi,

    I'd like to add separators between items of a menu control. So I was thinking of doing something like:

       <% control Menu(1) %>
        ... link ...
        <% if Middle %>
        ... separator ...
        <% end_if %>
       <% end_control %>

    Obviously, this doesn't work. Would I need to build my own data source to emulate the menu with the Middle control?

    Bernd

  • Blackdog
    Avatar
    Community Member
    156 Posts

    Re: <% If Middle %> in Menu control Link to this post

    why not just use <% if Last %> to set the last item to not be followed by a seperator?

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