[TYPO3] list children in menu

Cate & Peter catepeter at optusnet.com.au
Wed Sep 12 13:13:51 CEST 2007


Hi Timo

[Timo wrote:] 
> 
> sorry for writing so many mails lately.. I have been quite busy
> learning. And although I learned quite a lot in the last weeks
> there is something that drives me crazy.. I have been trying
> to find that out for ours now.. learned a lot of other things, but
> still have no clue.. I hope somebody can help me!
>
[Cate wrote:] 
:) Don't worry - we all remember that feeling :)
 
Timo wrote:
> I have a template with a menu in which the children of the current
> page should be listed. The thing is that this can occur at any hight
> of the tree.. so I cannot hardcode the entryLevel.
> 
> So tried to set entryLevel of my menu object to treeLevel,
> but that does not yield the expected results.
> 

[Cate wrote:] 
:) yes I remember this struggle too - I solved the problem using a different
approach...

# Sub Navigation   
lib.subnav = HMENU    
lib.subnav.special = directory    
lib.subnav.1 = TMENU   
lib.subnav.1 {   
NO.allWrap =  <li> | </li>   
ACT = 1   
ACT.allWrap = <li> | </li>   
      
}

By not specifying a lib.subnav.special.value = , the directory code causes a
menu of the child pages to be generated, wherever you are in the tree.

HTH
Cate



More information about the TYPO3-english mailing list