I have tried a few of the themes but cannot find any that seem to support sub pages of sub pages that show on the top level menus. I know I can do it with coding.... but I am in a hurry and wonder if is built in an i am missing it?
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.
You want your sidebar.ss(typical name) file in themes\Theme_Name\templates\Includes\ to look something like this:
<% control Level(1) %>
<% if Children %>
<a href="$Link" title="Go to the $Title.XML page" class="$LinkingMode test">$Title</a>
<ul class="sidemenu">
<% control Children %>
<li><a href="$Link" title="Go to the $Title.XML page" class="$LinkingMode">$MenuTitle</a>
<!--Level 2 of the Menu -->
<% if LinkOrSection = section %>
<ul class="sidemenu">
<% control Children %>
<li><a href="$Link" title="Go to the $Title.XML page" class="$LinkingMode">$MenuTitle</a>
<!-- Level 3 of the Menu -->
<% if LinkOrSection = section %>
<ul class="sidemenu">
<% control Children %>
<li><a href="$Link" title="Go to the $Title.XML page" class="$LinkingMode">$MenuTitle</a></li>
<% end_control %>
</ul>
<% end_if %>
</li>
<% end_control %>
</ul>
<% end_if %>
</li>
<% end_control %>
</ul>
<% end_if %>
<% end_control %>
Just stumbled upon this post in the forum while trying to do the very same thing on my site!
Thanks very much mccarville - works like a charm!
;)