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

Connect With Other SilverStripe Members /

For all SilverStripe-related topics that don't fit into any of the categories above.

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

How to use sub-menus on the content page.

Go to End

2 Posts   2137 Views


Community Member, 2 Posts

10 May 2016 at 7:18pm

Edited: 10/05/2016 7:20pm

I have a page with three lines of PAGE TEXT. I have now created three sub-menus under this page each having a few lines of text. Currently when I am clicking on the sub-menu my PAGE TEXT is disappearing. Is it possible to keep the main PAGE TEXT fixed, while showing different sub-menu items. Can someone please share the code and tell me where to place it. Thank you.


Community Member, 2 Posts

11 May 2016 at 6:06am

Thank you so much guys for reading this post. I have found a very simple solution to this. Add the following article code from to in the top area and place the aside unit size below the article code. Thats it! It works beautifully. Hope this helps!

<% if $Menu(2) %>
<nav class="secondary">
<% with $Level(1) %>

<div class="content">$Content</div>

<aside class="sidebar unit size1of4">

<% include SidebarMenu %>
<% end_with %>
<% end_if %>