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.

Archive /

Our old forums are still available as a read-only archive.

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

problem with special code for Internet Explorer


Go to End


1033 Views

Avatar
ojalà

Community Member, 87 Posts

22 October 2008 at 11:13pm

Hi!
I crweate a dorpdown menu whitouth javascript. I a normal site buid with dreamweaver this is ok, but with silverstripe I can't see dropdown menu only with IE browser, with firefox it's ok..why?Silverstripe can read the following special code for IE?

<!--[if lte IE 6]>
<table><tr><td>
<![endif]-->

in my code I have this:

<div class="menu">
<ul>
<% control Menu(1) %>
<li><a href="$Link" title="Go to the $Title.XML page" class="$LinkingMode">$MenuTitle</a>
<!--[if lte IE 6]>
<table><tr><td>
<![endif]-->
<% if Children %>
<ul>
<% control Children %>
<li><a href="$Link" title="Go to the $Title.XML page" <% if LinkingMode %>class="$LinkingMode"<% end_if %>>$MenuTitle</a></li>
<% end_control %>
</ul>
<% end_if %>
<!--[if lte IE 6]>
</td></tr></table>
</a>
<![endif]-->
</li>
<% end_control %>
</ul>
</div>