Hi,
Weird problem. In my template it says:
<ul id="mainnav">
<% control Menu(1) %>
<li class="$LinkingMode">
<a href="$Link" title="Go to the "{$MenuTitle}" section">$MenuTitle</a>
<ul>
<% control Children %>
<li><a href="$Link" title="Go to the "{$MenuTitle}" section">$MenuTitle</a></li>
<% end_control %>
</ul>
</li>
<% end_control %>
</ul>
You know, to see second level menus when you hover over the first level. Normally works (with some JS added as well for IE6). But Silverstripe 2.3.0-rc2 renders the code like this (according to source view in my browser, I edited for brevity):
<ul id="mainnav"
<li class="current">
<a href="/cmstest/" title="Go to the "Home" section">Home</a>
<ul>
</ul>
</li>
<li class="link">
<a href="/cmstest/new-page/" title="Go to the "test one" section">test one</a>
<ul>
<li><a href="/cmstest/new-page-6/" title="Go to the "New Page" section">New Page</a></li>
<li><a href="/cmstest/new-page-7/" title="Go to the "New Page" section">New Page</a></li>
<li><a href="/cmstest/new-page-8/" title="Go to the "New Page" section">New Page</a></li>
</ul>
</li>
<li class="link">
<a href="/cmstest/new-page-2/" title="Go to the "test two" section">test two</a>
<ul>
</ul>
</li>
<li class="link">
<a href="/cmstest/new-page-3/" title="Go to the "test three" section">test three</a>
<ul>
</ul>
</li>
<li class="link">
<a href="/cmstest/new-page-4/" title="Go to the "test four" section">test four</a>
<ul>
</ul>
</li>
<li class="link">
<a href="/cmstest/new-page-5/" title="Go to the "test five" section">test five</a>
<ul>
</ul>
</li>
</ul>
As you can see, it closes ul and li tags where it is not supposed to. What gives? File a bug?
- Ray.