[TYPO3] Wrap menu items next to active (selected) menu item

Logi Huldar Gunnlaugsson logi at spuni.is
Mon Feb 5 16:55:00 CET 2007


Hi list,

I have a horizontal menu that has been designed in a way that forces me
to explicitly wrap the menu items to the left and/or right of current
active menu item.

The menu might look like this
<ul>
   <li>Menu1</li>
   <li>Menu2</li>
   <li>Menu3</li>
   <li>Menu4</li>
   <li>Menu5</li>
</ul>

But when ie. Menu3 is selected I need the menu to look like this:
<ul>
   <li>Menu1</li>
   <li class="left">Menu2</li>
   <li class="act">Menu3</li>
   <li class="right">Menu4</li>
   <li>Menu5</li>
</ul>

Does anyone have any idea of how to accomplish this in TS?????

I thought about using some kind of optinsplit thingy but I cannot see
how I could pull that of... :-(

Anyone?

Cheers,
Logi





More information about the TYPO3-english mailing list