[TYPO3-english] Horizontal Menu with Horizontal submenus
Xavier Perseguers
typo3 at perseguers.ch
Tue Mar 17 10:53:32 CET 2009
Theo Kotey wrote:
> Xavier Perseguers wrote:
>> Hi,
>>
>>> The reason why I did that was because I wanted the submenus to appear
>>> somewhere else.
>>
>> Then your second-level menu should be configured as a first-level menu
>> but with property entryLevel of the HMENU item set to "1".
>>
> Sorry I'm not quite what you mean. Please give an example script
You wrote this:
# Menu 2 cObject
lib.menu_2 = HMENU
# First level menu-object, textual
lib.menu_2 {
wrap = <DIV class="tabcontainer"> | </div>
2 = TMENU
2 {
wrap = <div id="+page_id+" class="tabcontent"> | </div>
noBlur = 1
expAll = 1
But you cannot create a HMENU without defining level 1. That is
2 = TMENU
without corresponding
1 = TMENU
does not work.
What I said is to change your 2 = TMENU into 1 = TMENU ("your
second-level menu should be configured as a first-level menu") and in
order to actually start your menu with the second-level and not get
twice the same menu in lib.menu_1 and lib.menu_2, adding this
lib.menu_2.entryLevel = 1
This is what I meant with "with property entryLevel of the HMENU item
set to 1".
Meaning:
lib.menu_2 = HMENU
lib.menu_2 {
entryLevel = 1
wrap = ...
1 = TMENU
1 {
...
}
}
HTH
--
Xavier Perseguers
http://xavier.perseguers.ch/en/tutorials/typo3.html
More information about the TYPO3-english
mailing list