[TYPO3] HMENU/TMENU: 2 levels in 1 menu?
Peter Klein
peter at umloud.dk
Sun Dec 3 21:09:26 CET 2006
You can use COA's inside HMENU's. You just have to read TSRef to find the
correct way of doing it.
But how about something like this, where the COA is placed OUTSIDE the
Hmenu?
-- cut --
lib.mymenu = COA
lib.mymenu {
10 = TEXT
10.data = leveltitle:-2
10.typolink.parameter.data = leveluid:-2
10.wrap = <h2>|</h2>|<br />
20 = HMENU
20.1 = TMENU
20.1.wrap = <ul>|</ul>
20.1.NO.allWrap = <li>|</li>
}
-- cut --
if you want to use a COA INSIDE a HMENU/TMENU, you can do something like
this:
-- cut --
10 = HMENU
10.1 = TMENU
10.1.NO.stdWrap.cObject = COA
10.1.NO.stdWrap.cObject {
<.. Your COA code here ..>
}
-- cut --
--
Peter Klein / Umloud Untd
"Pieter" <pieter.v at gmx.net> wrote in message
news:mailman.1.1165175662.22167.typo3-english at lists.netfielders.de...
> Peter Klein wrote:
>> Hi Pieter. If you just need to show the title of the previous page, you
>> don't need to create a menu for it..
>> You could just do something like this:
>>
>> -- cut --
>> 10 = TEXT
>> 10.data = leveltitle:-2
>> 10.typolink.parameter.data = leveluid:-2
>> -- cut --
>>
>> This will give you the title of the previous page, with link.
>>
>> --
>> Peter Klein / Umloud Untd
>>
>
> That's a good idea. But the link should be the first item of the pop-up
> menu. I should somehow be able to use a COA and you're code to mix
> everything together. But COA inside a HMENU does not seem to work..
>
> Regards,
> Pieter
More information about the TYPO3-english
mailing list