Zum Inhalt springen

Problem mit gmenu_layers

Erstellt am 22. Juli 2005 · 4 Antworten · letzte Antwort am 27. Juli 2005

Tags: Frage

onetit ·

Hallo

Ich arbeite seit kurzem mit Typo3.
Aber jetzt habe ich ein Problem.

Ich möchte ein GMENU_LAYERS Menu machen, doch es fuktioniert nicht. Die erste ebene wird zwar angezeigt, und das wars dann auch.

Ich habe es wi folgt eingebunden:

seite = PAGE
seite {
typeNum = 0
includeLibs.gmenu_layers = media/scripts/gmenu_layers.php

Aber nichts passiert. Muss ich noch irgendwo etwas anstellen, das das PHP Script auch angesprochen wird?

Besten Dank für jeden Hinweis

Sino ·

du musst nurnoch das gmenu erzeugen. du lädst ja quasi nur die bibliothek in deine Seite rein, benutzt aber keine funktionen um das gmenu ansich zu realisieren.

Mfg

Sino

onetit ·

Ja, ist mir schon klar.
Ich versuche es so zu erzeugen.

   MENU_OBEN= HMENU
   MENU_OBEN.1 = GMENU
   MENU_OBEN.1.NO {
   backColor = #AAAAAA
   XY = 65, 40
   10 = TEXT
   10.text.field = title
   10.fontFile = fileadmin/fonts/arial.ttf
   10.fontSize = 11
   10.nice.Text = 2
   10.offset = 4,15
}
  10 = HMENU
  10.1 = GMENU_LAYERS
  10.1 {
   layerStyle = position:absolute;left:0px;top:20px;width:10px;VISIBILITY:hidden; 
   xPosOffset =-10
   lockPosition = x
   expAll=1
   NO {
      backColor = #cccccc
      XY = [10.w]+30, 20
      10 = TEXT
      10.text.field = title
      10.fontFace = fileadmin/fonts/arial.ttf
      10.fontSize = 10
      10.offset = 5,15
  }
}
  
   10.2 = GMENU
   10.2.NO {
   backColor =  #cccccc
   XY = 140, 20
   10 = TEXT
   10.text.field = title
   10.offset = 5,13
   10.fontSize = 10
   10.fontFace = fileadmin/fonts/arial.ttf
}

Was ist da falsch?

markusbucher ·

Hi.

Ich poste dir mal meinen Code, der funktioniert bei mir prima.
Ich habe ihn mit Marks eingebunden, wie machst du das?

# Grafisches Layer-Menu
# Erste Ebene
Seite.10.marks.MENUE = HMENU
Seite.10.marks.MENUE.1 = GMENU_LAYERS
Seite.10.marks.MENUE.1 {
   layerStyle = position:absolute;left:0px;top:120px;width:10px;VISIBILITY:hidden;
   xPosOffset = 0
   lockPosition = x
   expAll=1
   NO {
       backColor = #cccccc
       XY = [10.w]+30, 20
       10 = TEXT
       10.text.field = title
       10.fontFace = fileadmin/fonts/verdana.ttf
       10.fontSize = 12
       10.offset = 5,15
       }
   RO < .NO
   RO = 1

   RO.backColor = #FFFFFF
   RO.20.fontColor = #FFFFFF
}
#Zweite Ebene
Seite.10.marks.MENUE.2 = GMENU_LAYERS
Seite.10.marks.MENUE.2 {
   layerStyle = position:absolute;left:0px;top:200px;width:10px;VISIBILITY:hidden;
   xPosOffset = -10
   yPosOffset = -30
   lockPosition = y
   expAll=1
   NO {
      backColor = |*| #cccccc || #aaaaaa |*|
      XY = 100, 20
      10 = TEXT
      10.text.field = title
      10.offset = 5,13
      10.fontSize = 11
      10.fontFace = fileadmin/fonts/verdana.ttf

      20 = BOX
      20.dimensions = 0,0,2,20
      20.color = #000000
   
      30 < .20
      30.align = r

      40 = BOX ||
      40.dimensions = 0,0,100,2
      40.color = #000000

      50 = |*||*|    || BOX
      50.dimensions = 0,0,100,2
      50.color = #000000
      50.align = ,b
      }
      RO < .NO
      RO = 1
      RO.backColor = #FFFFFF
      RO.20.fontColor = #FFFFFF
}
#Dritte Ebene
Seite.10.marks.MENUE.3 = GMENU
Seite.10.marks.MENUE.3 {
   NO {
   backColor = |*| #cccccc || #aaaaaa |*|
   XY = 120, 20
   10 = TEXT
   10.text.field = title
   10.fontFace = fileadmin/fonts/verdana.ttf
   10.offset = 5,13
   10.fontSize = 11

   20 = BOX
   20.dimensions = 0,0,2,20
   20.color = #000000

   30 < .20
   30.align = r

   40 = BOX ||
   40.dimensions = 0,0,120,2
   40.color = #000000

   50 = |*||*|    || BOX
   50.dimensions = 0,0,120,2
   50.color = #000000
   50.align = ,b
   }
   RO < .NO
   RO = 1
   RO.backColor = #FFFFFF
   RO.20.fontColor = #FFFFFF
}

Viel Erfolg.

Markus

Fabian-K ·

Uhm.. 3 Ebenen?
Sieht das nicht ziemlich 'merkwuerdig' aus?

Die dritte ebene baut sich doch immer so 'unschoen' auf!?