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.
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.
Thank you so much guys for reading this post. I have found a very simple solution to this. Add the following article code from Page.ss to SideBar.ss 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) %>
<article>
<h1>$Title</h1>
<div class="content">$Content</div>
</article>
<aside class="sidebar unit size1of4">
<h3>
$Title
</h3>
<ul>
<% include SidebarMenu %>
</ul>
<% end_with %>
</nav>
<% end_if %>
</aside>