[TYPO3-english] Submenu with header

Paul Rijke paul at rijke.org
Thu Nov 26 15:37:40 CET 2009


Hi Tyler,

Great! This works! Don't understand why though, but is is a start. I'll read
TSREF upon this.

lib.subMenu = HMENU
lib.subMenu.entryLevel = 1
lib.subMenu.stdWrap.required = 1
lib.subMenu.stdWrap.dataWrap = <div class="sub_nav"><h1>{ leveltitle : 1
}</h1><ul>|</ul></div>
 }</h1><ul>|</ul></div>
lib.subMenu.1 = TMENU
lib.subMenu.1.NO {
  allWrap =<li>|</li>
}

-----Oorspronkelijk bericht-----
Van: typo3-english-bounces at lists.typo3.org
[mailto:typo3-english-bounces at lists.typo3.org] Namens Tyler Kraft
Verzonden: donderdag 26 november 2009 15:01
Aan: typo3-english at lists.typo3.org
Onderwerp: Re: [TYPO3-english] Submenu with header

Hi

lib.subMenu.stdWrap.dataWrap = <div class="sub_nav"><h1>{ leveltitle : 0 
}</h1><ul>|</ul></div>

And to hie the whole thing if no sub menu:
lib.subMenu.stdWrap.required=1



Paul Rijke wrote:
> Hi Tyler,
> 
> This is quite advanced for me (at the moment). Just starting out with TS
and
> templating.
> 
> If you wish to elaborate on that, I am happy to learn.
> 
> -----Oorspronkelijk bericht-----
> Van: typo3-english-bounces at lists.typo3.org
> [mailto:typo3-english-bounces at lists.typo3.org] Namens Tyler Kraft
> Verzonden: donderdag 26 november 2009 14:14
> Aan: typo3-english at lists.typo3.org
> Onderwerp: Re: [TYPO3-english] Submenu with header
> 
> Hi
> 
> You can do this many ways but the two that come right to mind instantly 
> are to change the entrylevel and make use of all the options in TMENU 
> and TMENUITEM  or you can simply replace your wrap with stdWrap.datawrap 
> to get the data.
> 
> hth
> 
> Paul Rijke wrote:
>> 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
>>
> _______________________________________________
> TYPO3-english mailing list
> TYPO3-english at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english
> 
_______________________________________________
TYPO3-english mailing list
TYPO3-english at lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english



More information about the TYPO3-english mailing list