Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

General Questions /

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

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

Drop Down Menu Issue


Go to End


2 Posts   1289 Views

Avatar
Musicaldustbin

Community Member, 13 Posts

28 February 2011 at 11:15pm

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

Avatar
blueskies

Community Member, 44 Posts

12 March 2011 at 10:23am

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