[TYPO3] dynamic navigation for next level of tree
Bernd Wilke
xoonsji02 at sneakemail.com
Sat Jul 8 10:01:51 CEST 2006
On Sat, 8 Jul 2006 15:49:14 +1000, Cate & Peter wrote
with subject "[TYPO3] dynamic navigation for next level of tree":
> Hi all
>
>
>
> I am trying to generate a dynamic navigation for the next level out in the
> hierarchy of my site.
>
>
>
> I have
>
>
>
> # Leftside Navigation
>
> lib.spokenav = HMENU
>
> # First level menu-object, textual
>
> lib.spokenav.1 = TMENU
>
> lib.spokenav.1 {
>
> # Normal state properties
>
> NO.allWrap = <li class="leftnav"> | </li>
>
> NO.stdWrap.data = leveltitle : 4
>
> # Enable active state and set properties:
>
> ACT = 1
>
> ACT.stdWrap.data = leveltitle : 4
>
> ACT.allWrap = <li class="leftnav"> | </li>
>
> }
>
>
>
>
>
> I have tried the values 0,1,2,3,4, -1, -2, for leveltitle, and none of them
> pull what I want up..
>
>
>
> I have also tried a number of other alternatives, like .special to achieve
> this, and just haven't quite worked it out.
>
>
>
> I actually thought that -1 should pull up the outermost, but upon looking at
> some other snippets, that seems to be "outermost to this point".
>
>
>
> I tried working out what level the pages are on (4) and that is the current
> example, but it doesn't work, it returns empty.
>
>
>
> What am I missing?
I have a site with a similar solution. I show all siblings of the actual
page and all sons of actual page.
for your needs you should disable level 1 from this typoscript:
marks.LINKS = HMENU
marks.LINKS {
entryLevel = -2
1 = TMENU
1 {
SPC = 1
SPC.doNotLinkIt = 1
expAll = 0
NO {
linkWrap = <p class="links"> | </p>
}
ACT < .NO
ACT = 1
ACT.linkWrap = <p class="linksA"> | </p>
RO = 0
}
2 = TMENU
2 {
SPC = 1
SPC.doNotLinkIt = 1
expAll = 0
NO {
linkWrap = <p class="links2"><img
src="media/bullets/bullet1_n.gif" alt=""> |</p>
}
}
}
Bernd
--
----------------
Bernd Wilke
Annweilerstr.20
40229 Düsseldorf
0211/229 2800
More information about the TYPO3-english
mailing list