[TYPO3] setting different styles for the first and last item in a menu..

Klaus Musset portacom at web.de
Thu Oct 12 11:41:16 CEST 2006


Hallo Nico
check this, hope it works.

temp.hmenu = HMENU
temp.hmenu.1 = TMENU
temp.hmenu.1 {
   wrap = <ul> | </ul>
    NO {
       allWrap = <li id="start">|</li> |*| <li>|</li> |*| <li 
id="menuend">|</li>
       ATagBeforeWrap = 1
       }
    ACT < .NO
    ACT = 1
    ACT.linkWrap = <span id="active">|</span>
    }



Nico Potvin schrieb:
> Hi,
> 
> i am lookin for a way to render the following menu, the first and the 
> last item got to have another id than the middle menu items..
> 
> is this possible? i looked at the Tsref but couldn't find anything.
> i know how to set up the menu in typoscript.
> somehow the typoscript menu should alter the renderings for the first 
> and last item in the list.
> Every menu item also has an active state
> 
> it has to look something like this:
> 
> <ul>
>     <li id="start"><a href="#">Menu item1</a></li>
>     <li><a href="#">Menu item1</a></li>
>     <li id="active"><a href="#">Menu item1</a></li>
>     <li><a href="#">Menu item1</a></li>
>     <li><a href="#">Menu item1</a></li>
>     <li><a href="#">Menu item1</a></li>
>     <li id="menuend"><a href="#">Menu item1</a></li>
> </ul>
> 
> any ideas?
> 
> greets
> 
> nico
> 
> -- 
> Nico Potvin
> 
> KAN Design
> Antwerpen - Belgium
> Phone: +32 (0)3 203 41 69
> Fax: +32 (0)3 225 14 05
> E-mail: nico.potvin at kandesign.com
> http://www.kandesign.com
> 



More information about the TYPO3-english mailing list