[Typo3] How to only show active first level menu-item/page title

Jacco Lammers jlammers at sundayafternoon.nl
Sat Oct 8 11:07:32 CEST 2005


Best List,

After looking in TSREF, the TS by example, etc. I can't find a way to 
render only the first level active menu item (or page title). The menu 
is split up, so there is a need to repeat the active first level 
menu-item above the second level menu.

I would like to exchange the {field:title} in the snippet of the TS 
below for something that does the same but stays 'first level'.

I'm sorry if I could have found it in documentation somewhere or if this 
is a stupid question. Please let me know. Help is very much appreciated.

Jacco Lammers

TS:

temp.menu_1 = HMENU
temp.menu_1.maxitems = 6
   # First level menu-object, textual
temp.menu_1.1 = TMENU
temp.menu_1.1 {
     # Normal state properties
   NO.allWrap = <span class="menu-1level1no">|</span>
   NO.stdWrap.htmlSpecialChars = 1
     # Enable active state and set properties:
   ACT = 1
   ACT.stdWrap.htmlSpecialChars = 1
   ACT.allWrap =  <span class="menu-1level1act">|</span>
}

temp.menu_2 = HMENU
temp.menu_2.entryLevel = 1
temp.menu_2 {
   stdWrap.dataWrap = <img 
src="fileadmin/template/vvyn/images/beforeimg.gif" border="0" alt="" 
/><span class="menu-2level1act">{field:title}</span><br />|
}
temp.menu_2.1 = TMENU
temp.menu_2.1 {
...



More information about the TYPO3-english mailing list