Jump to:

23370 Posts in 18160 Topics by 2864 members

General Questions

SilverStripe Forums » General Questions » Drop Down Menu Issue

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: 974 Views
  • Musicaldustbin
    Avatar
    Community Member
    13 Posts

    Drop Down Menu Issue Link to this post

    Hi

    I have a drop down menu working great however for one item it has far too many sub pages to use a drop down menu 40+ so i wanted to disable items for this item (which i do through the CMS nice and easily by unchecking display in menu).

    However my dilemma is I would like to list these links on their parent page (Sub Branches) however if i try to list them using the standard second level nav tag they don't show up because i have disabled them.

    Is there a tag that i can just list the children as links ?

    Cheers Nick

  • blueskies
    Avatar
    Community Member
    42 Posts

    Re: Drop Down Menu Issue Link to this post

    I think this would work:

    <% control AllChildren %>
    <a href="$Link">$Title</a><br />
    <% end_control%>

    For further information see: http://doc.silverstripe.org/sapphire/en/reference/built-in-page-controls#and-lt-control-allchildren-and-gt

    974 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.