[Typo3] collapse to the page what it was rather than frontpage?
Thorsten Kahler
thorsten.kahler at dkd.de
Fri Oct 14 00:53:37 CEST 2005
Hi Bing,
why do you cut off TYPO3s functionalities, if you want to use them?
What about the "basic version"?
temp.nav.1 = TMENU
temp.nav.1 {
expAll = 0
collapse = 1
wrap = <ul> | </ul>
NO {
wrapItemAndSub = <li> | </li>
# needed??? ATagParams = onfocus="blurLink(this);" onclick="return
toggleSubmenu(this);"
}
ACT < .NO
ACT = 1
}
Regards
Thorsten
Bing Du wrote:
> Hi,
>
> collapse = 1 is set in the template. Expanded menu can collapse fine.
> But the problem is they all show the frontpage after collapsing. They
> should show their own page after collapsing. For instance,
>
> page1
> page2
> -subpage21
> --subpage211
> -subpage22
>
> Assuming page2 is expanded. Clicking page2 should collapse the menu and
> at the same time should show page2 itself. But it shows the frontpage.
> Looking more, the pattern seems to be collapsing shows parent page. So
> collapsing subpage21 above shows page2 rather than subpage21 itself. Is
> this expected behaviour as designed? Anyway to show the collapsed page
> itself?
>
> Thanks in advance for any ideas. Menu code follows.
>
> ====
> temp.nav = HMENU
> temp.nav.special = directory
> temp.nav.special.value = 654
>
> temp.nav.wrap = <ul>|</ul>
>
> temp.nav.1 = TMENU
> temp.nav.1 {
> expAll = 0
> collapse = 1
>
> NO {
> doNotLinkIt = 0
> allWrap = <li>|<ul>
> linkWrap = |
> wrapItemAndSub = |</ul></li>
> ATagParams = onfocus="blurLink(this);" onclick="return
> toggleSubmenu(this);"
> }
>
> ACT = 1
> #ACT < .NO
> ACT.doNotLinkIt = 0
> ACT.allWrap = <li>|<ul>
> ACT.linkWrap = |
> ACT.wrapItemAndSub = |</ul></li>
> ACT.ATagParams = onfocus="blurLink(this);" onclick="return
> toggleSubmenu(this);" class="selected"
> }
>
> temp.nav.2 < .temp.nav.1
> temp.nav.3 < .temp.nav.1
> temp.nav.4 < .temp.nav.1
> temp.nav.5 < .temp.nav.1
> ====
>
> Bing
More information about the TYPO3-english
mailing list