Jump to:

23378 Posts in 18298 Topics by 2867 members

General Questions

SilverStripe Forums » General Questions » help in control menu

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
Go to End
Author Topic: 615 Views
  • bebabeba
    Avatar
    Community Member
    192 Posts

    help in control menu Link to this post

    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>

  • simon_w
    Avatar
    Forum Moderator
    471 Posts

    Re: help in control menu Link to this post

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

    615 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.