[TYPO3-english] Menu item style different then others
sabine deeken
sabine.deeken at web.de
Mon Apr 6 16:59:36 CEST 2009
I remember I have done with subst_elementUid but I can't find the code now..
this one was discussed in the german list and sounds interesting too.
you don't need to write a css-class to do the styling - you can also use the style-attribute within the li-tag, but regarding the principle of keeping apart styling and html-source, this is the dirty way..
allWrap.cObject = CASE
allWrap.cObject {
key.field = uid
default = TEXT
default.value = <li class="default">|</li>
1 = TEXT
1.value = <li class="red">|</li>
2 = TEXT
2.value = <li class="blue">|</li>
4 = TEXT
4.value = <li class="green">|</li>
}
(
http://lists.netfielders.de/pipermail/typo3-german/2008-March/045196.html )
StephenBungert schrieb:
> If you don't want the ID to every page included as part of a class, then use
> Iproc function and edit the menu array for the page ID that needs extra
> styling and add the extra class then. That way only the item you want to
> style differently would have an extra class.
>
> -----
>
More information about the TYPO3-english
mailing list