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're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

Customising the CMS /

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

Sidebar Menu(2) Issue

Go to End



Community Member, 10 Posts

10 November 2010 at 10:29am

There is probably a very simple explanation for this (hoping). I appreciate hearing from anyone who may understand the issue.

The second level sidebar menu links work correctly when you first select a secondary page, however, once on that secondary page, when you click on another secondary link, the link is broken. It appears to be an issue with the URL as a # is added. See example below.

Example of functioning link:

Example of broken link:

<div id="sidebar">
	<ul id="subnav">
		  	<% control Menu(2) %>
  	    		<li><a href="$Link">$MenuTitle.XML</a>
	  			<% if LinkOrSection = section %>
	  				<% if Children %>
							<% control Children %>
								<li><a href="$URLSegment">$MenuTitle.XML</a></li>
							<% end_control %>
			 		 <% end_if %>
				<% end_if %> 
		<% end_control %>
	</ul><!-- #subnav -->

</div><!-- #sidebar -->