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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

General Questions /

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

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

help in control menu


Go to End


2 Posts   916 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
(deleted)

Community Member, 473 Posts

18 September 2010 at 7:27am

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