[TYPO3] Getting title of parent item in a menu
JoH asenau
info at cybercraft.de
Sun Aug 19 17:36:37 CEST 2007
> 2 = TMENU
> 2.NO {
> allStdWrap {
> # Show only if current-page-id and menu-item-parent_id match
> if {
> value.data = TSFE:id
> equals.field = pid
> }
> }
> stdWrap {
> # Put the register content before the linktext
> dataWrap = {register:level1Title}: |
> }
> # Wrap the item
> allWrap = <li>|</li>
> }
The pid ceck doesn't make much sense here, since it will just behave like a
default menu would do.
Bit it works with the title as well
2 = TMENU
2.NO {
allStdWrap {
# Show only if current-page-id and menu-item-parent_id match
if {
value.data = page:title
equals.field = title
}
}
stdWrap {
# Put the register content before the linktext
dataWrap = {register:level1Title}: |
}
# Wrap the item
allWrap = <li>|</li>
}
--
Wenn man keine Ahnung hat: Einfach mal Fresse halten!
(If you have no clues: simply shut your gob sometimes!)
Dieter Nuhr, German comedian
openBC/Xing: http://www.cybercraft.de
T3 cookbook: http://www.typo3experts.com
More information about the TYPO3-english
mailing list