Jump to:

5453 Posts in 1674 Topics by 1198 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: 838 Views
  • plushtoy
    Avatar
    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:
    http://domain.com/page-1

    Example of broken link:
    http://domain.com/page-1#page-2

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

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

    838 Views
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.