Jump to:

23487 Posts in 18996 Topics by 2878 members

General Questions

SilverStripe Forums » General Questions » superfish navigation

General questions about getting started with SilverStripe that don't fit in any of the categories above.

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

Page: 1 2
Go to End
Author Topic: 3933 Views
  • mhull
    Avatar
    Community Member
    79 Posts

    Re: superfish navigation Link to this post

    Hi,

    I think I have sorted it by looking through the forum at other posts and solutions
    I found this post:
    http://www.silverstripe.org/template-questions/show/251612#post251612

    and finally I used the following, hopefully correct:

       <ul id="topmenu" class="sf-menu sf-navbar">
    <% control Menu(1) %>

    <li <% if LinkOrSection = section %>class="current"<% end_if %>><a href="$Link" >$MenuTitle</a>

    <% if Children %>
    <% if URLSegment != what-s-new %>

    <ul>
    <% control Children %>
    <li><a class="$LinkingMode" href="$Link" title="Go to the {$Title} page">$MenuTitle</a></li>
    <% end_control %>
    </ul>
    <% end_if %>
    <% end_if %>
    </li>
    <% end_control %>
    </ul>


    Thank you very much for all your help NickJacobs, I really appreciate it.

  • mhull
    Avatar
    Community Member
    79 Posts

    Re: superfish navigation Link to this post

    I thought I had completed the problem with the navigation, however it seems the hidden children don't show a blank dropdown on parent hover. Therefore confusing the user. is there a fix for this? or would this be a superfish issue?

    I see this on this site: http://aucklandringcompany.co.nz/brooches/
    built by NickJacobs. It seems that if no children, no blank subnav is shown, however just repeats the navigation selected.

    Any ideas on how to show a blank subnav?

    3933 Views
Page: 1 2
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.