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

help in control menu


Reply


2 Posts   652 Views

Avatar
bebabeba

Community Member, 193 Posts

18 September 2010 at 2:40am

Hi!
I have a problem with second level menu. Inside my div id="m$ID" control menu(2) doesn't work..help please, I write my code..

<ul id="sddm">
   <% control Menu(1) %>
<li>
   
   <a href="$Link"
onmouseover="mopen('m$ID')"
onmouseout="mclosetime()">$Title</a>
<div id="m$ID"
onmouseover="mcancelclosetime()"
onmouseout="mclosetime()">
    <ul id="Menu2">
          <% control Menu(2) %>
          
             <li class="$LinkingMode"><a href="$Link" title="Go to the $Title.XML page" class="$LinkingMode levela"><span><em>$Title.XML</em></span></a>
         </li>
         <% end_control %>
         </ul>
</div>
</li>
<% end_control %>
</ul>

Avatar
simon_w

Forum Moderator, 474 Posts

18 September 2010 at 7:27am

You want <% control Children %>, not <% control Menu(2) %>.