I don't often ask for help, but this one is baffling me a little.. I'm working on a website in SS, the client wants a multilevel arrangement (easy!) but wants the second levels to be available to the user when rolling the mouse over the first level (not so much..).
<ul class="Menu1"> <% control Menu(1) %> <li><a href="$Link" title="Go to the $Title.XML page" class="$LinkingMode">$MenuTitle</a></li> <% end_control %> </ul> <% if Menu(2) %> <ul class="Menu2"> <% control Menu(2) %> <li><a href="$Link" title="Go to the $Title.XML page" class="$LinkingMode">$MenuTitle</a></li> <% end_control %> </ul> <% end_if %>
So far I just have the above, and it works, but it isn't dynamic based on rollover.
To be honest I've never needed to deal with this situation, with or without SilverStripe - could this be done by putting the second-level hierarchy in a DIV and having an onMouseOver script replace the contents of it with another 2nd level menu? Either way, the problem at this point is gleaning the information for the secondary menus in such a way as I can present it in the way I need it..