[TYPO3-dev] GMENU und wrapItemAndSub

Philipp Metzler phil at goli.at
Tue Aug 26 18:49:04 CEST 2008


Hello Steffen,

Thanks a lot for your quick patch. We just tested it. The result is,  
that the menu items are displayed twice now.

Plese check it out here: http://neu.danklhampel.com/

Changed the code in class tslib_gmenu as you described. It looks like  
this now:

**********************

	function extProc_afterLinking($key)	{
		$this->WMresult.=$this->I['theItem'];
		if (!$this->I['spacer'])	{
			$this->WMresult.= $this->subMenu($this->I['uid'], $this- 
 >WMsubmenuObjSuffixes[$key]['sOSuffix']);
		}
		$part = $this->WMcObj->stdWrap($this->I['val']['wrapItemAndSub'], 
$this->I['val']['wrapItemAndSub.']);
		$this->WMresult.= $part ? $this->tmpl->wrap($this->I['theItem'], 
$part) : $this->I['theItem'];		
	}

**********************

The Typoscript we use looks like this:

lib.mainMenu = HMENU
lib.mainMenu {

         1=GMENU
         1 {
                 expAll = 1
                 noBlur = 1
				
                 #wrap.allStdWrap.insertData = 1
                 allStdWrap.insertData = 1
                 wrap (
                     <div id="level_1_{field:uid}" class="MainMenu">
                         |
                     </div>
                 )
             				
                 NO = 1
                 NO {
                         wrapItemAndSub.insertData = 1
                         wrapItemAndSub(
                             <div onMouseOver="showMessage('animate  
level (if exists) else content with id: {field:uid}');"  
class="MainMenuItem">
                                 |
                                 <div id="Content_{field:uid}"  
class="Content"></div>
                             </div>
                         )

                         transparentBackground = 1
                         ATagTitle.field = title
                         XY=[10.w]+10,24

                         10=TEXT
                         10 {
                                 text.field=title
                                 offset=1,20
                                 fontColor=#000000
                                 fontFile=fileadmin/fonts/BodoniStd.otf
                                 fontSize=18
                         }
                 }
                 ACT <.NO
                 ACT.10.fontColor = #666666

                 RO <.NO
                 RO.10.fontColor = #666666

                 ACTRO <.RO
         }


Best regards,

Philipp

_______________________________________________________________

DI Philipp Metzler
Goli.at GesbR.
Dorf Rieden 7/11
A-6900 Bregenz
EU - Austria

E-Mail: phil at goli.at
Skype: googol
Tel: +43 / 676 / 72 94 176
ICQ: 13950954

∙ www.philippmetzler.com - Softwareentwicklung und Websites mit Typo3.
∙ www.goli.at - Ihr Speicherplatz im Web. Messen Sie uns an unseren  
Daten.
∙ www.clickshopping.at - Wir bringen Ihre Produkte auf den Punkt.
∙ www.greencar.at - Elektroautos und mehr ...
_______________________________________________________________

Am 26.08.2008 um 12:00 schrieb typo3-dev-request at lists.netfielders.de:

> Steffen Kamper schrieb:
>> Hi,
>>
>> +1 for having it.
>>
>> I made a small patch which should do it, please test and report  
>> (havn't
>> time for testing now)
>>
>> vg Steffen
>>
> seems not interesting?
>
> vg Steffen





More information about the TYPO3-dev mailing list