ok I'm trying to use the code from
http://www.cssplay.co.uk/menus/dd_valid.html for styling my (category) menu... Problem is, to be compatible with IE6, it uses conditional if statements between the <li> and <ul> tags on sub-menus. See sample code below:
<div class="menu">
<ul>
<li><a href="/">HOME</a></li>
<li><a href="/about">ABOUT</a></li>
<li><a class="hide" href="/collection">PRODUCTS</a>
<!--[if lte IE 6]>
<a href="/products">PRODUCTS
<table><tr><td>
<![endif]-->
<ul >
<li><a href="/products/product-1">Product 1</a></li>
<li><a href="/products/product-2">Product 1</a></li>
</ul>
<!--[if lte IE 6]>
</td></tr></table>
</a>
<![endif]-->
</li>
</ul>
</div>
As you can see, the conditional if statements go in between <li> tags if parents of sub menu's. Adding the beginning conditional if won't be a problem as I can just check if it's not the parent menu, then print the conditional code, then just print
$categoryRecord['_listItemStart'].
But the problem comes when printing the end tag, since
$categoryRecord['_listItemEnd'] will print the end tag of the last sub-item, the end tag of the sub items list and the end tag of the parent item all at once.
Is it possible to insert the condition if statement BEFORE the close </li> tag of the parent as shown in the code above?