[TYPO3-english] Submenu with header

Paul Rijke paul at rijke.org
Thu Nov 26 14:35:04 CET 2009


Hi Rachel,

I had to debug it a little to get it work, but this is what it is now and it
works. It now generates the nice div-block when I select a main item.

One additional quistion I have about this is that when there's no subitem,
this menu shouldn't appear at all. Any tricks to do this? I guess something
with a conditional treelevel or so.

lib.subMenu = COA

lib.subMenu.10 = TEXT
lib.subMenu.10.data = leveltitle : 1
lib.subMenu.10.wrap = <h1>|</h1>
 
#the menu
lib.subMenu.20 = HMENU
lib.subMenu.20.entryLevel = 1
lib.subMenu.20.wrap = <ul>|</ul>
lib.subMenu.20.1 = TMENU
lib.subMenu.20.1.noBlur = 1
lib.subMenu.20.1.NO.allWrap = <li>|</li>
lib.subMenu.wrap = <div class="sub_nav">|</div>

Thx in advance..... 
Paul

-----Oorspronkelijk bericht-----
Van: typo3-english-bounces at lists.typo3.org
[mailto:typo3-english-bounces at lists.typo3.org] Namens Rachel Foucard
Verzonden: donderdag 26 november 2009 13:57
Aan: typo3-english at lists.typo3.org
Onderwerp: Re: [TYPO3-english] Submenu with header

Hi Paul,

you can't get a {leveltitle} like that, you can get it for example like
below :

lib.subMenu = COA

#the title
lib.subMenu.10 = TEXT
lib.subMenu.10.data = { leveltitle : 0}
lib.subMenu.10..wrap = <h1>|</h1>

#the menu
lib.subMenu.20 = MENU
lib.subMenu.20.entryLevel = 1
lib.subMenu.20.wrap =  <ul>|</ul>
lib.subMenu.1 = TMENU
lib.subMenu.1.NO {
allWrap =<li>|</li>
}
lib.subMenu.wrap = <div class="sub_nav">|</div>

Rachel Foucard.
http://www.w-seils.com
http://typo3-demo.fr

"Paul Rijke" <paul at rijke.org> a icrit dans le message de news: 
mailman.1502.1259237900.615.typo3-english at lists.typo3.org...
> Hi all,
>
> I'm developing a new template and I want a submenu, containting the 
> content of it's parent a the title. So I have level-0 menu-time called 
> "Services", than I want the submenu to be generated as:
>
> <div class="sub_nav">
> <h1>Services</h1>
> <ul>
> <li><a href="#">Financial Services</a></li> <li><a href="#">Technical 
> Services</a></li> </ul> </div>
>
> Any ideas how to typoscript this? This what I have now, which works 
> except for the title. I know i have to do something with leveltitle:0 
> or so, but please bear with me:
>
> lib.subMenu = HMENU
> lib.subMenu.entryLevel = 1
> lib.subMenu.wrap = <div class="sub_nav"><h1>{ leveltitle : 0 
> }</h1><ul>|</ul></div>
> lib.subMenu.1 = TMENU
> lib.subMenu.1.NO {
>  allWrap =<li>|</li>
> }
>
> Thanks in advance,
>
> Paul
> 





More information about the TYPO3-english mailing list