[TYPO3-english] Custom class in tmenu according to uid page
Marieke Vandamme
marie at tvh.be
Mon Feb 22 15:49:55 CET 2010
Using:
key.field = uid
it works! Thanks a lot!
Victor Livakovsky wrote:
>
>> Hello,
>>
>> I would like to put a specific class according to the uid from the page.
>>
>> My menu should look like this:
>> <div class="corporate"></div> # Corporate
>> <div class="hr"></div> # HR
>> <div class="knowledge"></div> # Knowledge
>> ..
>>
>> My typoscript:
>> temp.myMenu = HMENU
>> temp.myMenu .1 = TMENU
>> temp.myMenu .1 {
>> NO.linkWrap = <div class="???"></div>|
>> }
>>
>> Thanks for helping me to fill in the "???" ! Marieke
>
> Hi.
>
> You may try to play with cObject of menu item:
> temp.myMenu = HMENU
> temp.myMenu .1 = TMENU
> temp.myMenu .1 {
> NO.allWrap.cObject = CASE
> NO.allWrap.cObject {
> key = id
> default = TEXT
> default.value = <div class="default"> | </div>
> # id of 'Corporate' page
> 23 = TEXT
> 23.value = <div class="corporate">|</div>
> ...
> }
> }
>
> I've not tried this snippet, but at least you now have point to start with
> ;)
>
> _______________________________________________
> TYPO3-english mailing list
> TYPO3-english at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english
>
>
--
View this message in context: http://old.nabble.com/Custom-class-in-tmenu-according-to-uid-page-tp27685787p27688383.html
Sent from the TYPO3 English mailing list archive at Nabble.com.
More information about the TYPO3-english
mailing list