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.

Themes /

Discuss SilverStripe Themes.

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

Multi Level Menu in blackcandy theme


Go to End
Reply


2 Posts   1284 Views

Avatar
ronaan

Community Member, 9 Posts

12 September 2012 at 11:26pm

Edited: 12/09/2012 11:27pm

Hello,

sorry if the question has been answered; I looked through search results for two hours and did not get any further:

I want another menu level to be shown in the sidebar. Currently it looks like:

Something1
Something2
Something3
Something4
Something5

When I click on one of the entries, it changes (like it should) to:

Something1
-subSomething1.1
-subSomething1.2
Something2
Something3
Something4
Something5

Now imagine I have a page that fits under subSomething1.1, hierarchically... i.e. it would be sub_subSomething 1.1.1 for example.

I've tried copy/pasting stuff from the SideBar.ss into itself but I never found the right spot... please help. I'm no coder, unfortunately.
I never get the sub_sub pages to show in the sidebar.

<div id="Sidebar" class="typography">
	<div class="sidebarBox">
 		<h3>
			<% control Level(1) %>
				$Title
			<% end_control %>
  		</h3>
  		
  		<ul id="Menu2">
		  	<% control Menu(2) %>
  	    		<% if Children %>
			  	    <li class="$LinkingMode"><a href="$Link" title="Zu Kapitel $Title.XML" class="$LinkingMode levela"><span><em>$MenuTitle.XML</em></span></a>
	  	    	<% else %>
		  			<li><a href="$Link" title="Zu Kapitel $Title.XML" class="$LinkingMode levela"><span><em>$MenuTitle.XML</em></span></a>
				<% end_if %>	  
	  		
	  			<% if LinkOrSection = section %>
	  				<% if Children %>
						<ul class="sub">
							<li>
								<ul class="roundWhite">
									<% control Children %>
										<li><a href="$Link" title="Zu Kapitel $Title.XML" class="$LinkingMode levelb"><span><em>$MenuTitle.XML</em></span></a></li>
									<% end_control %>
								</ul>
							</li>
						</ul>
			 		 <% end_if %>
				<% end_if %> 
			</li> 
  			<% end_control %>
  		</ul>
		<div class="clear"></div>
	</div>
	<div class="sidebarBottom"></div>
</div>
  

Avatar
ronaan

Community Member, 9 Posts

13 September 2012 at 5:44pm

Found the solution after browsing a few more search replies. Last post on pg1 by Willr helped me tons http://www.silverstripe.org/archive/show/2614?start=0