[Typo3] SOLVED - HMENU of subpages on every page example

Matthew Manderson matthew at manderson.co.uk
Wed Nov 23 17:09:12 CET 2005


> If you want to display subpages of the current page only, this should be
> the default behaviour of HMENU.
> So you could simply remove the entryLevel _and_ the conditions completely.
> 
> temp.subnav.text = HMENU
> temp.subnav.text {
>   1 = TMENU
>   1.noBlur=1
>   1.NO.allWrap =  |*| · 
> }

Well I pull my hair out, this TYPO3 stuff is too easy ;-)

This menu reacts differently. It does what it says, but with a variation. If
the current page has subpages it lists these subpages, else if the current
page has no subpages then it lists the current level pages. So the menu
always shows some content.

With the conditions variation if there are no subpages then no menu shows.
 
For my particular need I required that no pages be shown if there were no
subpages but I never spotted this default behaviour so thanks Joey.

I tried your special = directory approach and it responded the same as your
natural approach. Only it has the advantage of allowing you to select the
levels that are listed.

Without conditions of course is more future proof when it comes to users
adding new levels.

:-)



More information about the TYPO3-english mailing list