[TYPO3-english] treeLevel = -1
JoH asenau
info at cybercraft.de
Wed Mar 10 14:33:24 CET 2010
> I already got a second menu, but that second menu has to be active on
> the latest level. To do that, I thought it might be handy to use the
> option "treeLevel = -1", and I tried it, but it didn't work. Do you
> know which option I can use instead of "treeLevel = -1"?
This is not an "option" but a condition, but in fact this one cloud help
you.
First setup the menu with a certain entryLevel i.e.:
blah = HEMNU
blah {
entryLevel = -1
1 = TMENU
1 {
blah
}
}
This will always show the subpages of the current page.
Then make a condition for the tree level:
[treeLevel = 3]
blah.entryLevel = -2
[global]
This way the entry level will change for all menus displayed on pages on the
third level. They will show all subpages of their "grand parent" page now.
If you haven't got any additional levels, this should be all, else you will
have to add more conditions to make pages on higher levels behave like level
3 pages:
[treeLevel = 4]
blah.entryLevel = -3
[global]
[treeLevel = 5]
blah.entryLevel = -4
[global]
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
More information about the TYPO3-english
mailing list