[TYPO3] override.if x 2

Vandemaele David david.vandemaele at telenet.be
Wed May 24 16:36:20 CEST 2006


JoH schreef:
> "Vandemaele David" <david.vandemaele at telenet.be> schrieb im Newsbeitrag 
> news:mailman.1.1148475576.5437.typo3-english at lists.netfielders.de...
>> Some elements of the menu need a different css style. So I use the 
>> following code to get this:
>>
>> 1.NO {
>>         allWrap.cObject = TEXT
>>         allWrap.cObject {
>>             value = <li>|
>>             override  = <li class="BL">|
>>             override.if.value = 120,41,44,38,40
>>             override.if.isInList.field = uid
>>         }
>>         wrapItemAndSub = |</li>
>>     }
>>
>> The last menu item needs a different css style from the others.
>> Is this possible to keep the code with some minor changes?
>> Or do I need something completely different?
>>
>> David
> 
> You can use optionSplit on each and every part of the setup inside the 
> itemstates (NO, ACT, ...).
> So this one should do the job:
> 
> 1.NO {
>     allWrap.cObject = TEXT
>     allWrap.cObject {
>         value = |*| <li>| |*| <li class="last">|
>         override  = |*| <li class="BL">| |*| <li class="BL last">|
>         override.if.value = 120,41,44,38,40
>         override.if.isInList.field = uid
>     }
>     wrapItemAndSub = |</li>
> }
> 
> Joey 
> 
> 
That did it.

Thx.



More information about the TYPO3-english mailing list