Zum Inhalt springen

gmenu_layers - Umfassende Anleitung gesucht

Erstellt am 16. September 2004 · 11 Antworten · letzte Antwort am 18. November 2004

Tags: Frage

huebi_s ·

Hallo zusammen

Verfolge schon längere Zeit die Forenbeiträge über GMENU und GMENU_LAYERS. Bis jetzt habe ich es aber noch nicht geschafft irgendwas schlüssiges zu finden, welches auch wirklich funktioniert.

Nun brauche ich ein Aufklappmenü und bin immer noch nicht auf einen Nenner gekommen woran es liegen könnte, dass bei mir die Teile nicht funktionieren. Ausser die starke Vermutung, es hat noch immer mit der GdLib zu tun. o.O

Frage: Gibt es irgendwo eine abschliessende Anleitung zu diesem Thema, welche auch wirklich standfest ist?

Mir würde wirklich ein Stein vom Herzen fallen, wenn ich das hinkriegen würde.

Besten Dank zum Voraus für Eure Bemühungen
und vor allem auch einmal all jenen, welche so aktiv in diesem Forum mitwirken. Wüsste nicht wo ich stecken würde ohne die ganze Hilfe. Vielen Herzlichen Dank!

Hübi

huebi_s ·

Hallo Dander, danke für deine Antwort.

Habe das testsite package installiert. Bekomme aber auch dort Fehlermeldungen angezeigt.

Oder anders gesagt, immer wenn es um die ImageMagick bezw. um die GdLib geht funktionierts bei mir nicht.
Habe schon alle möglichen Einstellungen versucht, die ich in den Foren und ab Zellulose gefunden habe. Sobald es irgendwo die GdLib benötigt, funzt es einfach nicht (Wiederholung - da Wut und Enttäuschung!). 😢

Sobald ich Zeit finde, teste ich das von dir gelinkte Beispiel.

huebi_s ·

Hallo, da bin i wieder

Hab das Beispiel mal bei mir getestet. Funktioniert sowei recht gut. :o
Nur, dass das aufgeklappte Untermenue nicht unterhalb des Hauptmenue geöffnet wird, sondern sich willkürlich auf die linke Seite des geöffneten Fenster ausrichtet. :o
Kann mir jemand erklären wieso und ob es eine Möglichkeit gibt es an die Hauptnavigation zu binden.

Hier meine Code-Schnipsel:

seite.includeLibs.gmenu_layers = media/scripts/gmenu_layers.php
seite.10 = TEMPLATE
seite.10 {
    template = FILE
    template.file = fileadmin/testseite.html
    workOnSubpart = DOKUMENT
marks.NAVIGATIONTOP = HMENU
marks.NAVIGATIONTOP.1 = GMENU_LAYERS
marks.NAVIGATIONTOP.1 {
  layerStyle = position:absolute;left:0px;top:16px;width:10px;VISIBILITY:hidden; 
  xPosOffset =-10
  lockPosition = x
#  displayActiveOnLoad = 1
  expAll=1
  NO {
    colbacks = #cccccc
    backColor = #99cccc
    XY = [10.w]+10, 14
    10 = TEXT
    10.text.field = title
    10.offset = 5,10
  }
}
marks.NAVIGATIONTOP.2 = GMENU
marks.NAVIGATIONTOP.2.wrap = |<BR>
marks.NAVIGATIONTOP.2.NO {
  colbacks = #99cccc
  backColor = #99cccc
  XY = 120, 14
  10 = TEXT
  10.text.field = title
  10.offset = 5,10
}

    marks.NAVIGATION = HMENU
    marks.NAVIGATION.entryLevel = 2
    marks.NAVIGATION.collapse = 1
    marks.NAVIGATION.1 = TMENU
    marks.NAVIGATION.1 {
        NO  {
        allWrap = <BR> &nbsp;  &nbsp; | <BR>
        ATagParams=class="subnavigation"
        beforeImg = fileadmin/imageslayout/grafiken/pfeil_halb_rot5.gif
        beforeROImg = fileadmin/imageslayout/grafiken/pfeil_halb_rot_hell2.gif
        RO = 1
        }
        ACT = 1
        ACT {
        allWrap = <BR> &nbsp; &nbsp; | <BR>
        ATagParams=class="subnavigationactive"
        beforeImg = fileadmin/imageslayout/grafiken/pfeil_halb_rot_hell2.gif
        }
    }
    marks.NAVIGATION.2 = TMENU
    marks.NAVIGATION.2 {
        NO  {
        allWrap =  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; | <BR>
        ATagParams=class="subnavigation"
        beforeImg = fileadmin/imageslayout/grafiken/pfeil_halb_rot5.gif
        beforeROImg = fileadmin/imageslayout/grafiken/pfeil_halb_rot_hell2.gif
        RO = 1
        }
        ACT = 1
        ACT {
        allWrap =  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; | <BR>
        ATagParams=class="subnavigationactive"
        beforeImg = fileadmin/imageslayout/grafiken/pfeil_halb_rot_hell2.gif
        }
    }


    marks.INHALT = CONTENT
    marks.INHALT.select.orderBy = sorting
    marks.INHALT.table = tt_content
    marks.INHALT.select.orderBy = sorting 
    marks.INHALT.select.where = colPos=0 
    marks.INHALT.select.languageField = sys_language_uid
}

Wäre toll, wenn mir da noch jemand aus der Patsche helfen könnte!

Vielen Dank 😉

huebi_s ·

Monday, Monday....

Habe mal was zusammen gestiefelt.

Da ich die Seite zentrieren möchte, kann ich das Aufklappmenue nicht nach links ausrichten.
Gibt es irgend eine Möglichkeit die Position nicht nach dem Browser oder dem Aktivierungspunkt, sondern nach einem anderen Fixpunkt zu öffen (z.Bsp. nach dem Eckpunkt einer Tabelle oder so...)?

seite.includeLibs.gmenu_layers = media/scripts/gmenu_layers.php
seite.10 = TEMPLATE
seite.10 {
    template = FILE
    template.file = fileadmin/testseite.html
    workOnSubpart = DOKUMENT
marks.NAVIGATIONTOP = HMENU 
marks.NAVIGATIONTOP.1 = GMENU_LAYERS 
marks.NAVIGATIONTOP.1 { 
layerStyle = position:absolute;top:85px;left:5px;width:10px;VISIBILITY:hidden; 
#yPosOffset = -10 
#leftOffset = 160 
lockPosition = 
xPosOffset = 50
topOffset = x
#yPosOffset = 10
#leftOffset = y
#directionLeft = 1
#dontFollowMouse = 1
expAll = 1 
hideMenuWhenNotOver = 2 
freezeMouseover = 0 
hideMenuTimer = 3000 
NO { 
backColor = #003264 
XY = 90, 19 
10 = TEXT 
10.text.field = title 
# 10.fontFile = fileadmin/template/res/verdana.ttf 
#10.fontSize = 11
10.fontColor = #ffffff 
10.niceText = 0 
10.offset = 12,14 

20 = BOX 
20.dimensions = 0,0,1,19 
20.color = #444444 
20.align = r 
} 
RO <.NO 
RO = 1 
RO { 
backColor = #6597c3 
} 
ACT <.NO 
ACT = 1 
ACT { 
backColor = #6597c3 
} 

} 

marks.NAVIGATIONTOP.2 = GMENU_LAYERS 
marks.NAVIGATIONTOP.2 { 
layerStyle = position:absolute;top:85px;left:5px;width:10px;VISIBILITY:hidden; 
leftOffset = 169 
xPosOffset = -169 
yPosOffset = 0 
lockPosition = x
hideMenuWhenNotOver = 1 
hideMenuTimer = 400 
relativeToParentLayer=1 
#relativeToTriggerItem=1 
dontFollowMouse = 1 
expAll = 1 

NO { 
backColor = #ffffff 
XY = 120, 18 
10 = TEXT 
10.text.field = title 
10.fontFile = fileadmin/template/res/verdana.ttf 
#10.fontSize = 10
10.fontColor = #000000
10.niceText = 0 
10.offset = 5,14 

20 = BOX 
20.dimensions = 0,0,1,20 
20.color = #444444 

30 = BOX 
30.dimensions = 0,0,170,1 
30.color = #444444 

50 < .20 
50.align = r 

60 = |*||*| || BOX 
60.dimensions = 0,0,170,1 
60.color = #444444 
60.align = ,b 
} 
RO <.NO 
RO = 1 
RO { 
backColor = #444444 
10.fontColor = #ffffff 
} 
}

    marks.INHALT = CONTENT
    marks.INHALT.select.orderBy = sorting
    marks.INHALT.table = tt_content
    marks.INHALT.select.orderBy = sorting 
    marks.INHALT.select.where = colPos=0 
    marks.INHALT.select.languageField = sys_language_uid
}

Wäre wirklich super, wenn mir da noch einer helfen könnte!

P.S.: Würde auch versprechen, ganz brav bis Freitag zu arbeiten.

Hübi

huebi_s ·

Hallöchen

Habe alles zusammen gestiefelt. Das Ganze ist nun auch bei den Markern eingebettet und funktioniert wunderbar! :p

Ein Problem habe ich noch mit dem GMENU_FOLDOUT. o.O Schaffe es einfach nicht das Teil bei einem Marker einzufügen. Hoffe, dass auch hier jemand ein Rat weiss.
Habe dazu einen neuen Eintrag eröffnet:

#16457

Für alle die es interessiert hier der komplette Code der GMENU_LAYERS. Die ersten zwei Navigationsebenen werden oben beim Marker ###NAVIGATIONTOP###, die Navigationebenen drei bis fünf links beim Marker ###NAVIGATION### geöffnet.

seite = PAGE
seite.stylesheet = fileadmin/styles.css
seite.typeNum = 0
seite.bodyTag =<body bgcolor = "" leftmarging="0" topmargin="0">


seite.includeLibs.gmenu_layers = media/scripts/gmenu_layers.php
seite.10 = TEMPLATE
seite.10 {
    template = FILE
    template.file = fileadmin/testseite.html
    workOnSubpart = DOKUMENT
	marks.NAVIGATIONTOP = HMENU 
	marks.NAVIGATIONTOP.1 = GMENU_LAYERS 
	marks.NAVIGATIONTOP.1 { 
  		wrap = <table border="0" cellpadding="0" cellspacing="0"><tr>|</tr></table>
  		NO.wrap = <td>|</td>
  		NO.imgParams = hspace="0"
  		layerStyle = position:absolute;top:0px;left:0px;width:0px;VISIBILITY:hidden; 
  		relativeToTriggerItem = 1
  		relativeToTriggerItem.addHeight=1
  		lockPosition = x
  		xPosOffset = -0
  		topOffset =0
  		expAll = 1 
  		hideMenuWhenNotOver = 2 
  		freezeMouseover = 0 
  		hideMenuTimer = 1000
		NO { 
  			backColor = #939598
  			XY = [10.w]+25, 20
  			10 = TEXT 
  			10.text.field = title 
			# 10.fontFile = fileadmin/template/res/verdana.ttf 
			# 10.fontSize = 11
  			10.fontColor = #ffffff 
  			10.niceText = 0 
  			10.offset = 12,14 

			20 = BOX 
			20.dimensions = 0,0,1,19 
			20.color = #444444 
			20.align = r 
		} 
		RO <.NO 
		RO = 1 
		RO { 
		backColor = #6597c3 
		} 
		ACT <.NO 
		ACT = 1 
		ACT { 
		backColor = #6597c3 
		} 

	} 

marks.NAVIGATIONTOP.2 = GMENU_LAYERS 
marks.NAVIGATIONTOP.2 { 
	layerStyle = position:absolute;top:85px;left:5px;width:10px;VISIBILITY:hidden; 
	leftOffset = 169 
	xPosOffset = -169 
	yPosOffset = 0 
	lockPosition = x
	hideMenuWhenNotOver = 1 
	hideMenuTimer = 400 
	relativeToParentLayer=1 
	#relativeToTriggerItem=1 
	dontFollowMouse = 1 
	expAll = 1 
		NO { 
			backColor = #ffffff 
			XY = 120, 18 
			10 = TEXT 
			10.text.field = title 
			10.fontFile = fileadmin/template/res/verdana.ttf 
			10.fontColor = #000000
			10.niceText = 0 
			10.offset = 5,14 

			20 = BOX 
			20.dimensions = 0,0,1,20 
			20.color = #444444 

			30 = BOX 
			30.dimensions = 0,0,170,1 
			30.color = #444444 

			50 < .20 
			50.align = r 

			60 = |*||*| || BOX 
			60.dimensions = 0,0,170,1 
			60.color = #444444 
			60.align = ,b 
		} 
		RO <.NO 
		RO = 1 
		RO { 
		backColor = #444444 
		10.fontColor = #ffffff 
	} 
}


marks.NAVIGATION = HMENU 
marks.NAVIGATION.entryLevel = 2
marks.NAVIGATION.collapse = 1
marks.NAVIGATION.1 = GMENU_LAYERS 
marks.NAVIGATION.1.wrap = <table border="0" cellpadding="0" cellspacing="0">|</table>
marks.NAVIGATION.1 { 
  	layerStyle = position:absolute;top:0px;left:0px;width:0px;VISIBILITY:hidden; 
  	NO.allWrap = <tr><td>|</td></tr>
  	NO.imgParams = hspace="0"
  	relativeToTriggerItem = 1
  	relativeToTriggerItem.addHeight=1
  	lockPosition = y
	topOffset = -15
  	leftOffset = 150
  	expAll = 1 
  	hideMenuWhenNotOver = 2 
  	freezeMouseover = 0 
  	hideMenuTimer = 1000
		NO { 
  			backColor = #003264 
  			XY = 160, 20
  			10 = TEXT 
  			10.text.field = title 
			# 10.fontFile = fileadmin/template/res/verdana.ttf 
			# 10.fontSize = 11
  			10.fontColor = #ffffff 
  			10.niceText = 0 
  			10.offset = 12,14 

			20 = BOX 
			20.dimensions = 0,0,1,19 
			20.color = #444444 
			20.align = r 
		} 
		RO <.NO 
		RO = 1 
		RO { 
			backColor = #6597c3 
		} 
		ACT <.NO 
		ACT = 1 
		ACT { 
			backColor = #6597c3 
		} 
	} 

marks.NAVIGATION.2 = GMENU_LAYERS 
marks.NAVIGATION.2 { 
	layerStyle = position:absolute;top:85px;left:5px;width:10px;VISIBILITY:hidden; 
	relativeToTriggerItem = 1
  	relativeToTriggerItem.addHeight=1
	lockPosition = y
  	topOffset = -10
  	leftOffset = 110
	hideMenuWhenNotOver = 1 
	hideMenuTimer = 400 
	relativeToParentLayer=1 
	dontFollowMouse = 1 
	expAll = 1 
		NO { 
			backColor = #ffffff 
			XY = 120, 18 
			10 = TEXT 
			10.text.field = title 
			10.fontFile = fileadmin/template/res/verdana.ttf 
			10.fontColor = #000000
			10.niceText = 0 
			10.offset = 5,14 

			20 = BOX 
			20.dimensions = 0,0,1,20 
			20.color = #444444 

			30 = BOX 
			30.dimensions = 0,0,170,1 
			30.color = #444444 

			50 < .20 
			50.align = r 

			60 = |*||*| || BOX 
			60.dimensions = 0,0,170,1 
			60.color = #444444 
			60.align = ,b 
		} 
		RO <.NO 
		RO = 1 
		RO { 
			backColor = #444444 
			10.fontColor = #ffffff 
		} 
	}

marks.NAVIGATION.3 = GMENU_LAYERS 
marks.NAVIGATION.3 { 
	layerStyle = position:absolute;top:85px;left:5px;width:10px;VISIBILITY:hidden; 
	leftOffset = 169 
	xPosOffset = -169 
	yPosOffset = 0 
	lockPosition = x
	hideMenuWhenNotOver = 1 
	hideMenuTimer = 400 
	relativeToParentLayer=1 
	dontFollowMouse = 1 
	expAll = 1 
		NO { 
			backColor = #ffffff 
			XY = 120, 18 
			10 = TEXT 
			10.text.field = title 
			10.fontFile = fileadmin/template/res/verdana.ttf 
			10.fontColor = #000000
			10.niceText = 0 
			10.offset = 5,14 

			20 = BOX 
			20.dimensions = 0,0,1,20 
			20.color = #444444 

			30 = BOX 
			30.dimensions = 0,0,170,1 
			30.color = #444444 

			50 < .20 
			50.align = r 

			60 = |*||*| || BOX 
			60.dimensions = 0,0,170,1 
			60.color = #444444 
			60.align = ,b 
		} 
		RO <.NO 
		RO = 1 
		RO { 
			backColor = #444444 
			10.fontColor = #ffffff 
		} 
	}


    marks.INHALT = CONTENT
    marks.INHALT.select.orderBy = sorting
    marks.INHALT.table = tt_content
    marks.INHALT.select.orderBy = sorting 
    marks.INHALT.select.where = colPos=0 
    marks.INHALT.select.languageField = sys_language_uid
}

Hoffe er hilft euch weiter!

Wecki ·

Hallo,

ich habe deinen CODE 1:1 Kopiert und die Marker angepasst... jedoch wird mein Menü nicht angezeigt....

Woran kann das liegen?

Mein CODE:

 marks.MENU = HMENU
   marks.MENU.1 = GMENU_LAYERS
   marks.MENU.1 {
        wrap = <table border="0" cellpadding="0" cellspacing="0"><tr>|</tr></table>
        NO.wrap = <td>|</td>
        NO.imgParams = hspace="0"
        layerStyle = position:absolute;top:0px;left:0px;width:0px;VISIBILITY:hidden;
        relativeToTriggerItem = 1
        relativeToTriggerItem.addHeight=1
        lockPosition = x
        xPosOffset = -0
        topOffset =0
        expAll = 1
        hideMenuWhenNotOver = 2

        freezeMouseover = 0
        hideMenuTimer = 1000
      NO {
           backColor = #939598
           XY = [10.w]+25, 20
           10 = TEXT
           10.text.field = title
         # 10.fontFile = fileadmin/Template/menu.ttf
         # 10.fontSize = 11
           10.fontColor = #ffffff
           10.niceText = 0
           10.offset = 12,14

         20 = BOX
         20.dimensions = 0,0,1,19
         20.color = #444444
         20.align = r
      }
      RO <.NO
      RO = 1
      RO {
      backColor = #6597c3
      }
      ACT <.NO
      ACT = 1
      ACT {
      backColor = #6597c3
      }

   }

marks.MENU.2 = GMENU_LAYERS
marks.MENU.2 {
   layerStyle = position:absolute;top:85px;left:5px;width:10px;VISIBILITY:hidden;
   leftOffset = 169
   xPosOffset = -169
   yPosOffset = 0
   lockPosition = x
   hideMenuWhenNotOver = 1
   hideMenuTimer = 400
   relativeToParentLayer=1
   #relativeToTriggerItem=1
   dontFollowMouse = 1
   expAll = 1
      NO {
         backColor = #ffffff
         XY = 120, 18
         10 = TEXT
         10.text.field = title
         10.fontFile = fileadmin/Template/menu.ttf
         10.fontColor = #000000
         10.niceText = 0
         10.offset = 5,14

         20 = BOX
         20.dimensions = 0,0,1,20
         20.color = #444444

         30 = BOX
         30.dimensions = 0,0,170,1
         30.color = #444444

         50 < .20
         50.align = r

         60 = |*||*| || BOX
         60.dimensions = 0,0,170,1
         60.color = #444444
         60.align = ,b
      }
      RO <.NO
      RO = 1
      RO {
      backColor = #444444
      10.fontColor = #ffffff
   }
}