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.

General Questions

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

superfish navigation


Reply

10 Posts   3956 Views

Avatar
mhull

7 July 2009 at 12:00am Community Member, 79 Posts

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.

Avatar
mhull

17 July 2009 at 10:56pm Community Member, 79 Posts

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?