[TYPO3] Display 2nd level menu items based on PID
Ricardo Scachetti Pereira
ricardo at tdwg.org
Wed Apr 26 20:21:53 CEST 2006
Hi Wester,
Try setting expAll = 0 (or just commenting them out) in both menus.
That should work.
Cheers,
Ricardo
PS. What a coincidence, I was trying to make my site expand all items on
the 2nd level menus, but I didn't know how. Thanks for giving me the
answer :))
Wester, Josh wrote:
> 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
> _______________________________________________
> TYPO3-english mailing list
> TYPO3-english at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english
>
>
More information about the TYPO3-english
mailing list