[TYPO3-english] TMENU
JoH asenau
info at cybercraft.de
Tue Jun 23 12:46:55 CEST 2009
> Out of curiosity i ask me if it not possible do it with the
> "if.equals" property of stdWrap and set the css class "current" for
> the menu item on dependency the layout field of the current page.
>
> Pseudo code:
>
> if.equals = the layout field of page
> if.value = 1 (for yellow pages)
>
> set class="current" to the "about yellow pages" item.
You should use a CASE for that:
allWrap.cObject = CASE
allWrap.cObject {
key.data = TSFE:pages|layout
default = TEXT
default.value = <li>|
1 = TEXT
1.value = <li class="layout1">|
2 = TEXT
2.value = <li class="layout1">|
3 = TEXT
3.value = <li class="layout1">|
}
HTH
Joey
--
Wenn man keine Ahnung hat: Einfach mal Fresse halten!
(If you have no clues: simply shut your gob sometimes!)
Dieter Nuhr, German comedian
Xing: http://contact.cybercraft.de
Twitter: http://twitter.com/bunnyfield
TYPO3 cookbook (2nd edition): http://www.typo3experts.com
TYPO3 workshops: http://workshops.eqony.com
More information about the TYPO3-english
mailing list