[TYPO3] setting different styles for the first and last item in a menu..
Nico Potvin
nico.potvin at kandesign.com
Thu Oct 12 11:25:50 CEST 2006
Hi,
i have setup the menu in typoscript like this:
# Main Menu 1 cObject
temp.mainmenu = HMENU
temp.mainmenu.1 = TMENU
temp.mainmenu.1.wrap = <ul>|</ul>
temp.mainmenu.1 {
# Normal state properties
NO.allWrap = <li>|</li>
NO.stdWrap.htmlSpecialChars = 1
# Enable active state and set properties:
ACT = 1
ACT.stdWrap.htmlSpecialChars = 1
ACT.allWrap = <li id="active">|</li>
}
this renders my menu in standard ways, now comes the tricky part.
ik looked at the option split function (thanks for the tip), but is it
possible to make it such a way that it adds a different cssstyle?
becaus ein the examples i could only add a colour or can it be al kinds
of stuff?
greets
nico
On 12 Oct 2006, at 10:18, Klaus Musset wrote:
> Check the TSRef 'option split' -> it's 'allwrap' and 'wrap' with these
> parameters with '||'
> It's pretty tricky.
> Check TS by example ->
> http://typo3.org/documentation/document-library/core-documentation/
> doc_core_tsbyex/current/
> Good luck
> Klaus
>
>
> 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
>>
> _______________________________________________
> TYPO3-english mailing list
> TYPO3-english at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english
>
--
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