[TYPO3] Onlyshow submenu when elements

Henrik Rasmussen info at hmrdesign.dk
Thu Dec 7 17:02:09 CET 2006


Thanks... I'll take a closer look at that later..

/Henrik


"nirmalya Mondal" <nirmalya at fivee.in> wrote in message 
news:mailman.1.1165498966.12586.typo3-english at lists.netfielders.de...
> Henrik Rasmussen wrote:
>> Hello list,
>>
>> I have a submenu with a header above. But when there is no elements on 
>> the level (submenu empty), I don't want to show the header.
>>
>> I have tried using the Required flag in the wrap option, but I can't get 
>> it to work.
>>
>> Heres my typoscript:
>> *******************************************************************
>> ## Menu [Begin]
>> lib.subMenu = HMENU
>> lib.subMenu.wrap = <h3>See also...</h3><ul>|</ul>
>>
>> lib.subMenu.entryLevel = 1
>>
>> lib.subMenu.1 = TMENU
>> lib.subMenu.1.NO {
>>  allWrap = <li class="sublink-normal">-&nbsp;&nbsp;&nbsp;|</li>
>> }
>>
>> lib.subMenu.1.ACT = 1
>> lib.subMenu.1.ACT {
>>  allWrap = <li class="sublink-active">-&nbsp;&nbsp;&nbsp;|</li>
>> }
>> ## Menu [End]
>> *******************************************************************
>>
>> It's probably not so hard :)
>>
>> Please give me a hint...
>>
>> Thanks..
>>
>> Best regards
>>
>> Henrik Rasmussen
> hello Man, If its like http://ltocommerce.drecomm.nl/
> I've done like this ...
> *note LeftSide Subpages Header
>
> typoScript:
> lib.firstLevelMenuAct= TEXT
> lib.firstLevelMenuAct.data = leveltitle:1
> firstLevelMenuAct   < lib.firstLevelMenuAct
> inLeftNavi typoScript:
>  1 {
>     expAll=1
>     wrap = <table width="229" border="0" cellspacing="0" 
> cellpadding="0"><tr><td colspan="2" height="23" 
> background="fileadmin/template/images/left_header.gif">&nbsp;&nbsp;&nbsp;&nbsp;<span 
> class="leftHeader"><script>document.write(title);</script></span></td></tr><tr><td 
> width="100%" valign="top" colspan="2"><table border="0" cellspacing="0" 
> cellpadding="0" width="100%"><tr><td><ul id="nav">|</ul> 
> </td></tr></table></td></tr>
>
> ----------------
>
> javaScript:
> <script language="Javascript">
> /*var title = '<!--###firstLevelMenuAct### 
> //begins-->&nbsp;<!--###firstLevelMenuAct### //ends-->';
> replaced by */
> var title = 'Organisatie'; </script>
> <span class="leftHeader"><script>document.write(title);</script></span>
>
> Thank You.
> Regards,
> nirmalya Mondal
> -----------------------
> love,light,peace.......
> http://www.fivee.in
> 



More information about the TYPO3-english mailing list