[Typo3] dynamic header for menu?

Bing Du du_bing at hotmail.com
Tue Jun 21 20:29:32 CEST 2005


How can I make 'linkhead' shown in 'wrap' a variable that should be 
replaced with the title of the page (one level above) where the current 
menu came from?

=========
temp.mainmenu = HMENU
temp.mainmenu.entryLevel = {$entrylevel}
temp.mainmenu.1 = TMENU
temp.mainmenu.1 {

   expAll = 1

   wrap = <div id=mainlinks><div 
class=linkhead><h3>linkhead</h3></div><ul>|</ul></div>

   NO {
        ...
   }
}
=========

For instance, the page tree is like

page1
   sub11
     subsub1
     subsub2
   sub12
   sub13

So on page sub1, the menu should be like this.  Page1 is just a plain 
text header.

page1

sub11
sub12
sub13

On page subsub1, the menu should be like this. Again sub11 is just a 
plain text header.

sub11

subsub1
subsub2

etc.

Thanks in advance for any help.

Bing



More information about the TYPO3-english mailing list