Zum Inhalt springen

GMENU_LAYERS und TemplaVoila! Hiiiiilfeeee! :(

Erstellt am 7. April 2005 · 1 Antwort · letzte Antwort am 8. April 2005

Tags: Templates & Layouts, Frage

namenlos ·

Meine Seite ist mit TemplaVoila erstellt, und an Stelle des Markers - in meinem Fall lib.mainmenu - soll ein Layermenü gezeigt werden. Das Menu ansich funktioniet, nur Typo3 parst mir das Menü direkt nach dem Bodytag und nicht an die Stelle des Markers.

Hier der Quelltext dazu:

<body onload="T3_onloadWrapper();">
<div id="Menu6bccfc0" style="z-index:9999; position:absolute;top:113px;width:142px;border-top: solid 1px #000000;VISIBILITY:hidden;"><a href="web.0.html" onfocus="blurLink(this);" onmouseover="over('img39_6d88_0');" onmouseout="out('img39_6d88_0');"><img src="typo3temp/menu/4f6e54904f.gif" width="142" height="22" border="0" alt="Web" name="img39_6d88_0" /></a><a href="print.0.html" onfocus="blurLink(this);" onmouseover="over('img40_6d88_1');" onmouseout="out('img40_6d88_1');"><img src="typo3temp/menu/165a3e7f1a.gif" width="142" height="22" border="0" alt="Print" name="img40_6d88_1" /></a><a href="interaktiv.0.html" onfocus="blurLink(this);" onmouseover="over('img41_6d88_2');" onmouseout="out('img41_6d88_2');"><img src="typo3temp/menu/baba25cbee.gif" width="142" height="22" border="0" alt="Interaktiv" name="img41_6d88_2" /></a></div>
<div id="Menu6bccfc1" style="z-index:9998; position:absolute;top:113px;width:142px;border-top: solid 1px #000000;VISIBILITY:hidden;"><a href="mitarbeiter.0.html" onfocus="blurLink(this);" onmouseover="over('img46_ce75_0');" onmouseout="out('img46_ce75_0');"><img src="typo3temp/menu/3831c3752f.gif" width="142" height="22" border="0" alt="Mitarbeiter" name="img46_ce75_0" /></a><a href="jobs.0.html" onfocus="blurLink(this);" onmouseover="over('img45_ce75_1');" onmouseout="out('img45_ce75_1');"><img src="typo3temp/menu/559938d1f7.gif" width="142" height="22" border="0" alt="Jobs" name="img45_ce75_1" /></a><a href="partner.0.html" onfocus="blurLink(this);" onmouseover="over('img44_ce75_2');" onmouseout="out('img44_ce75_2');"><img src="typo3temp/menu/349419cf11.gif" width="142" height="22" border="0" alt="Partner" name="img44_ce75_2" /></a></div>

 
<div id="content"> 
  <table width="800" border="0" cellspacing="0" cellpadding="0"> 
    <tr> 
      <td> <!-- "Center mit absoluter Position"  --> 
        <div id="centerhack"> 
          <div id="bg"></div> 
          <div id="topnavi"><div id="topnaviposition"></div>
          </div> 
          <div id="inhaltbg"></div>
		  <div id="teaser"></div>
          <div id="inhalt"> 
            <div id="inhaltposition"></div> 
          </div> 
          <div id="mainmenu"><a href="referenzen.0.html" onfocus="blurLink(this);" onmouseover="GL_doTop('6bccfc', 'Menu6bccfc0');over('img38_873d_0');" onmouseout="out('img38_873d_0');GL_stopMove('6bccfc');"><img src="typo3temp/menu/61d2331d5c.gif" width="142" height="40" border="0" alt="Referenzen" name="img38_873d_0" /></a><a href="motionfx.0.html" onfocus="blurLink(this);" onmouseover="GL_doTop('6bccfc', 'Menu6bccfc1');over('img43_873d_1');" onmouseout="out('img43_873d_1');GL_stopMove('6bccfc');"><img src="typo3temp/menu/d1babb383d.gif" width="142" height="40" border="0" alt="MotionFX" name="img43_873d_1" /></a></div> 
          <div id="bottomnavi"></div> 
          <div id="submenu"></div> 
          <div id="pagepathbg"></div> 
          <div id="pagepath"><a href="home.0.html" onfocus="blurLink(this);"><img src="typo3temp/menu/ed8102efbc.gif" width="42" height="383" border="0" alt="Home" /></a></div>
		   
        </div>

Mein Problem ist die Positionierung. Das Menü müsste in den div "mainmenu" geschrieben werden.

Weiß jemand dazu ne Lösung, oder hat das Problem auch?

THXschonmal

namenlos ·

Also an TemplaVoila liegts nicht hab ich raus gefunden.

Das GMENU_LAYERS wird bei mir grundsätzlich direkt nach dem bodytag geschrieben und nicht an die Stelle des Markers MENU. 😢

Mein Code sieht jetzt wie folgt aus:

page.20 = TEMPLATE
page.20 {
template = FILE
template.file = fileadmin/templates/main_template.html
workOnSubpart = DOKUMENT
marks.MENU  = HMENU
marks.MENU {
     entryLevel = 0  
     special = list
     special.value = 38,43
}
marks.MENU.1 = GMENU_LAYERS
marks.MENU.1 {
      layerStyle = position:absolute;top:113px;width:142px;border-top: solid 1px #000000;VISIBILITY:hidden;
      dontFollowMouse = 1
      xPosOffset = -250
      lockPosition = x
      expAll = 1
      NO { 
      XY = 142, 40
      10 = TEXT      
      10 {
      text.field = title
      fontSize = 12
      fontColor = white
      offset = 20, 17
      nicetext =1
      align = left
       }
      5 = IMAGE
      5.file = fileadmin/templates/images/button_mainmenu_no.gif
      }
    
      RO < .NO
      RO.5 = IMAGE
      RO.5.file = fileadmin/templates/images/button_mainmenu_ro.gif  
      RO = 1

      ACT < .NO
      ACT.6 = IMAGE
      ACT.6.file = fileadmin/templates/images/button_mainmenu_act.gif  
      ACT = 1
}

marks.MENU.2 = GMENU
marks.MENU.2{
      expAll = 0
      NO { 
      XY = 142, 22
      10 = TEXT      
      10 {
      text.field = title
      fontSize = 12
      fontColor = white
      offset = 20, 15
      nicetext =1
      align = left
       }
      5 = IMAGE
      5.file = fileadmin/templates/images/button_submenu_no.gif
      }
      RO < .NO
      RO.5 = IMAGE
      RO.5.file = fileadmin/templates/images/button_submenu_ro.gif  
      RO = 1
}

}

Woran liegt das?