[TYPO3-english] Submenu with header
Rachel Foucard
rfoucard at w-seils.com
Thu Nov 26 13:57:29 CET 2009
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 écrit 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