Jump to:

5540 Posts in 1738 Topics by 1224 members

Customising the CMS

SilverStripe Forums » Customising the CMS » Sidebar Menu(2) Issue

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

Page: 1
Go to End
Author Topic: 884 Views
  • plushtoy
    Community Member
    10 Posts

    Sidebar Menu(2) Issue Link to this post

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

Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.