[TYPO3] How to overwrite HMENU?
Bing Du
bdu at iastate.edu
Mon Jul 17 22:52:11 CEST 2006
Hi,
We're using typo3 3.8.1.
The page tree is like
page1
page2
page31
page32
I want page2 to use the same template that page1 uses but just has its
own nagivation menu that only shows page31 and page32.
The HMENU of page1 is like the following in the main template.
==========
temp.nav = COA
temp.nav.stdWrap.dataWrap = <div id="nav">|</div>
temp.nav.10 = HMENU
temp.nav.10 {
wrap = <div id="navheader"></div><ul id="start">|</ul><div
id="navfooter"></div>
1 = TMENU
1 {
NO = 1
NO.allWrap = <li>|</li>
ACT = 1
ACT {
allWrap = <li>|</li>
ATagParams = class="selected nocursor"
}
}
2 < .1
}
============
The following is the extension template I created for page2 in the hope
to erase temp.nav and reconstruct it to show the menu starting from
page2. But the menu on page2 is still the same as that on page1.
============
temp.nav > # get rid of the original content of temp.nav
temp.nav = COA
temp.nav.stdWrap.dataWrap = <div id="nav">|</div>
temp.nav.10 = HMENU
temp.nav.10.special = list
temp.nav.10.special.value = 3117 # 3117 is page2's id.
temp.nav.10 {
wrap = <div id="navheader"></div><ul id="start">|</ul><div
id="navfooter"></div>
1 = TMENU
1 {
NO = 1
NO.allWrap = <li>|</li>
ACT = 1
ACT {
allWrap = <li>|</li>
ATagParams = class="selected nocursor"
}
}
2 < .1
}
============
Did I miss anything? I'd appreciate any help.
Thanks,
Bing
More information about the TYPO3-english
mailing list