[TYPO3] Display 2nd level menu items based on PID

Wester, Josh JoshuaWester at creighton.edu
Wed Apr 26 19:47:55 CEST 2006


I have a site with about 10 pages, many of which have subpages. I have a
menu for the site built using the HMENU/TMENU structure. How can I
display only the subpages with a certain PID? Basically what I am
wanting is a menu of the level1 pages with only one of the level2
submenus displayed.
 
Here is my page structure:
 
1
  11
  12
  13
2
3
  31
  32
4
  41
  42
  43
  44
  45
5
  51
  52
  53
6
  61
  62
7
8
9
  91
10
 
I want a menu with pages 1-10, and pages 51, 52, and 53 expanded under
page 5.
 
Here is my code which does not work, it currently displays all of the
2nd level menus:
 
    subparts.NAV_SITE = HMENU
    subparts.NAV_SITE.entryLevel = 0
    
    subparts.NAV_SITE.1 = TMENU
    subparts.NAV_SITE.1 {
        noBlur = 1
        expAll = 1
        wrap = <ul class="menulist">|</ul>
        NO.wrapItemAndSub = <li class="li1">|</li>
    }
 
    subparts.NAV_SITE.2 = TMENU
    subparts.NAV_SITE.2 {
        noBlur = 1
        expAll = 1
        wrap = <ul class="menulist2">|</ul>
        NO.wrapItemAndSub = <li class="li2">|</li>
        if {
            value = 13560
            equals.field = pid
        }
    }
 
 
Any ideas how I can make this work?
 
Thanks,
 
Josh



More information about the TYPO3-english mailing list