[Typo3-dev] Change behavure of menu below a special page
Ries van Twisk
typo3 at rvt.dds.nl
Thu Dec 30 21:34:15 CET 2004
I'll try to explain:
-page1
page2
page4
page9
page10
page5
page6
page7
page8
page3
On page 4,5,6 I put a special keyword called 'citypage'.
Now when the user is on page 1 it show me page2 and page3
When the user is on page 2 it show me page 4,5,6
When the user is on page 4 it show me page 4,5,6
When the user is on page 9 it show me page 4,5,6
When the user is on page 9 it show me page 4,5,6
Currently I use a constant to limit the menu, but would it be possible
to just scan for a keyword?
something like this:
if (currentpage = citypage) {
lib.leftmenu.special.value = uid
} else {
lib.leftmenu.special.value =
}
This is the menu I use:
# Left menu (level 1)
lib.leftmenu= HMENU
lib.leftmenu.special = directory
lib.leftmenu.special.value = {$libleftmenuspecialvalue}
lib.leftmenu.excludeUidList = {$leftmenuexcludeUidList}
# First level menu-object, textual
lib.leftmenu.1 = TMENU
lib.leftmenu.1 {
# Normal state properties
NO.allWrap = <tr><td class="ltg-menu_left">|</td></tr>
NO.stdWrap.htmlSpecialChars = 1
# Enable active state and set properties:
ACT = 1
ACT.stdWrap.htmlSpecialChars = 1
ACT.allWrap = <tr><td class="ltg-menu_left_selected"><b>|</b></td></tr>
}
I hope I have been clear enough :)
cheers,
Ries
R. van Twisk
http://www.metamorf.net
Our Typo3 enabled website: http://www.livetravelguides.com
Instand help for Typo3? irc:/irc.freenode.net/typo3
Looking for documentation? http://typo3.org/documentation/
More information about the TYPO3-dev
mailing list