Hi,
Is it possible to add the below conditional statements to my CMSListMenu web part for it to work correctly in IE6. To achieve this I need to add the conditional statements to the sub UL menu displayed in "Required Rendered HTML"
Conditional statements required for IE 6 to work:
<!--[if lte IE 6]><table><tr><td><![endif]-->
<!--[if lte IE 6]></td></tr></table></a><![endif]-->
Current Rendered HTML:
<div class="pro_linedrop">
<ul class="CMSListMenuUL" id="menuElem">
<li class="CMSListMenuLI" id="menuElem_LI_0_1_282"><a href="/home.aspx" class="CMSListMenuLink" >home</a></li>
<li class="CMSListMenuLI" id="menuElem_LI_0_2_282"><a href="/about-us.aspx" class="CMSListMenuLink" >about-us</a></li>
<li class="CMSListMenuLI" id="menuElem_LI_0_3_282"><a href="/services.aspx" class="CMSListMenuLink" >services</a></li>
<li class="CMSListMenuLI" id="menuElem_LI_0_4_282"><a href="/solutions.aspx" class="CMSListMenuLink" >solutions</a>
<ul class="CMSListMenuUL" id="menuElem_UL_1">
<li class="CMSListMenuLI" id="menuElem_LI_1_1_286"><a href="/solutions/customer-relationship-management-crm.aspx" class="CMSListMenuLink" >customer-relationship-management-crm</a></li>
<li class="CMSListMenuLI" id="menuElem_LI_1_2_286"><a href="/solutions/security.aspx" class="CMSListMenuLink" >security</a></li>
</ul>
</li>
<li class="CMSListMenuLI" id="menuElem_LI_0_5_282"><a href="/clients-say.aspx" class="CMSListMenuLink" >clients-say</a></li>
<li class="CMSListMenuLI" id="menuElem_LI_0_6_282"><a href="/contact.aspx" class="CMSListMenuLink" >contact</a></li>
</ul>
Required Rendered HTML:
<div class="pro_linedrop">
<ul class="CMSListMenuUL" id="menuElem">
<li class="CMSListMenuLI" id="menuElem_LI_0_1_282"><a href="/home.aspx" class="CMSListMenuLink" >home</a></li>
<li class="CMSListMenuLI" id="menuElem_LI_0_2_282"><a href="/about-us.aspx" class="CMSListMenuLink" >about-us</a></li>
<li class="CMSListMenuLI" id="menuElem_LI_0_3_282"><a href="/services.aspx" class="CMSListMenuLink" >services</a></li>
<li class="CMSListMenuLI" id="menuElem_LI_0_4_282"><a href="/solutions.aspx" class="CMSListMenuLink" >solutions</a>
<ul class="CMSListMenuUL" id="menuElem_UL_1">
<!--[if lte IE 6]><table><tr><td><![endif]-->
<li class="CMSListMenuLI" id="menuElem_LI_1_1_286"><a href="/solutions/customer-relationship-management-crm.aspx" class="CMSListMenuLink" >customer-relationship-management-crm</a></li>
<li class="CMSListMenuLI" id="menuElem_LI_1_2_286"><a href="/solutions/security.aspx" class="CMSListMenuLink" >security</a></li>
<!--[if lte IE 6]></td></tr></table></a><![endif]-->
</ul>
</li>
<li class="CMSListMenuLI" id="menuElem_LI_0_5_282"><a href="/clients-say.aspx" class="CMSListMenuLink" >clients-say</a></li>
<li class="CMSListMenuLI" id="menuElem_LI_0_6_282"><a href="/contact.aspx" class="CMSListMenuLink" >contact</a></li>
</ul>
I've looked into HTML Envelopes or web part containers but not sure if this is the correct way to do this. I saw an earlier post from 2007 where someone had to make changes to the CMSListmenu.cs file to get it to render the output as required.
Any feedback on this will be greatly appreciated.
Kind regards,
Sahus