Antwort
 
LinkBack Themen-Optionen Thema bewerten Ansicht
  #1  
Alt 11.05.06, 13:52
Forum Zuschauer
 
Registriert seit: 11.05.06
Alter: 30
Beiträge: 4

GMENU_LAYERS mit Marker - Menü klappt nicht aus


Hallo zusammen!

Ich bin gerade dabei das Buch "Einstieg in Typo3" von Andreas Stöckl durchzuackern. Bei den ersten Gehversuchen habe ich jetzt auch an nem Klappmenü (GMENU_LAYERS) probiert. Das auf der CD enthaltene Listing funktioniert auch einwandfrei:

Typoscript-Code:
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
Seite = PAGE
seite.typeNum = 0
seite.includeLibs.gmenu_layers = media/scripts/gmenu_layers.php
seite.10 = HMENU
seite.10.1 = GMENU_LAYERS
seite.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/verdana.ttf
10.fontSize = 12
10.offset = 5,15
}
}
seite.10.2 = GMENU
seite.10.2.NO {
backColor = |*| #cccccc || #aaaaaa |*|
XY = 140, 20
10 = TEXT
10.text.field = title
10.offset = 5,13
10.fontSize = 11
10.fontFace = fileadmin/verdana.ttf

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

30 < .20
30.align = r

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

50 = |*||*|    || BOX
50.dimensions = 0,0,140,2
50.color = #000000
50.align = ,b
}

Mein Vorhaben war jetzt das ganze so umzuschreiben, dass das Menü in einem Marker ausgegeben wird. Das schaut dann so aus:

Typoscript-Code:
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
seite = PAGE
seite.typeNum = 0
seite.includeLibs.gmenu_layers = media/scripts/gmenu_layers.php
seite.bodyTag = <body bgcolor="#ffffff" leftmargin="0" marginheight="0" marginwidth="0" topmargin="0">

seite.10 = TEMPLATE
seite.10 {
template = FILE
template.file = fileadmin/lmenu_templ.html
workOnSubpart = DOKUMENT


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

marks.MENUE.2 = GMENU
marks.MENUE.2.NO {
backColor = |*| #cccccc || #aaaaaa |*|
XY = 140, 20
10 = TEXT
10.text.field = title
10 .offset = 5,13 - ERROR: Line 35: Object Name String, "10" was not preceeded by any operator, =<>({
10.fontSize = 11
10.fontFace = fileadmin/verdana.ttf

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

30 < .20
30.align = r

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

50 = |*||*|    || BOX
50.dimensions = 0,0,140,2
50.color = #000000
50.align = ,b


} - ERROR: Line 56: The script is short of 2 end brace(s)

Hier tritt jetzt leider das Problem auf, dass nur die erste Menüzeile angezeigt wird, aber kein Klappmenü mehr aufklappt. Hab jetzt eben schon mindestens 30 Beiträge zu GMENU_Layer gelesen. Konnte aber nirgendwo was brauchbares finden. Hat jmd ne Ahnung - oder bin ich einfach zu doof? Evtl. ein Anfängerproblem...?

Vielen Dank für jeden Tipp!

Geändert von Tevsa (12.05.06 um 20:08 Uhr).
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
Mit Zitat antworten
  #2  
Alt 11.05.06, 13:57
Forum Stammgast
 
Registriert seit: 02.03.06
Beiträge: 132

du hast bemerkt, das in Zeile 36 deines zweiten scripts ein leerzeichen zu viel ist?

Gruß
Tevsa
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
Mit Zitat antworten
  #3  
Alt 11.05.06, 16:08
Forum Zuschauer
 
Registriert seit: 11.05.06
Alter: 30
Beiträge: 4

Ja, das Leerzeichen hab ich entfernt und die Klammern auch hinzugefügt. Funktioniert aber trotzdem nicht. Woran kann das jetzt noch liegen?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
Mit Zitat antworten
  #4  
Alt 12.05.06, 13:06
Forum Stammgast
 
Registriert seit: 10.11.05
Ort: Österreich
Alter: 23
Beiträge: 180
renegade eine Nachricht über ICQ schicken

Zitat:
Zitat von typotyp
Ja, das Leerzeichen hab ich entfernt und die Klammern auch hinzugefügt. Funktioniert aber trotzdem nicht. Woran kann das jetzt noch liegen?
ich hab das gleiche prob wie du
in der ersten ebene funktioniert es, aber die untermenüs kommen nicht
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
Mit Zitat antworten
  #5  
Alt 12.05.06, 13:22
Forum Zuschauer
 
Registriert seit: 12.05.06
Beiträge: 2

woher habt ihr das?


Hallo Zusammen,

ich habe bereits eine (kleine, einfache) Hp mit Typo3 erstellt und möchte mich nun an eine andere begeben.
Diese HP soll ein SlideOut-Menü haben. Aber ich bekomme es einfach nicht hin. Ich habe gelesen, dass ich entweder eine

media/scripts/gmenu_layers.php (für GMENU_LAYERS)
und/oder
media/scripts/tmenu_layers.php (für TMENU_LAYERS)

benötige, aber WO bekomme ich das denn her? Ich habe gesucht und gesucht, aber ich finde nichts. Vielleicht bin ich auch blind! ich weiß es nicht...

Vielleicht könnt ihr mir ja weiterhelfen. Wäre euch sehr dankbar!
LG,katih
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
Mit Zitat antworten
  #6  
Alt 12.05.06, 15:51
Forum Zuschauer
 
Registriert seit: 11.05.06
Alter: 30
Beiträge: 4

@katih:

füg einfach mal die Zeile wie in dem von mir oben geposteten Code ein.

@all:

Hat noch jemand ne Idee, wieso die Menüs nicht ausklappen. Oder hat die von mir verwendete Typo3-Version 3.7.0 evtl. allgemein Probleme mit marker und GMENU_Layer?!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
Mit Zitat antworten
  #7  
Alt 12.05.06, 15:55
Forum Zuschauer
 
Registriert seit: 12.05.06
Beiträge: 2

ja, mache ich mal. wenn es nicht klappt, dann melde ich mich wieder....
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
Mit Zitat antworten
  #8  
Alt 12.05.06, 18:51
Forum Zuschauer
 
Registriert seit: 11.05.06
Alter: 30
Beiträge: 4

des Rätsels Lösung!


Typo3 mag es anscheinend nicht, wenn zwei schließende Klammern direkt hintereinander in einer Zeile stehen... So funktionierts:

Typoscript-Code:
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64:
seite = PAGE
seite.typeNum = 0
seite.includeLibs.gmenu_layers = media/scripts/gmenu_layers.php
seite.bodyTag = <body bgcolor="#ffffff" leftmargin="0" marginheight="0" marginwidth="0" topmargin="0">


temp.10 = HMENU
temp.10.1 = GMENU_LAYERS
temp.10.1 {
layerStyle = position:absolute;left:0px;top:85px;width:10px;VISIBILITY:hidden;
xPosOffset = -10
lockPosition = x
expAll=1
NO {
backColor = #cccccc
XY = [10.w]+80, 20
10 = TEXT
10.text.field = title
10.fontFace = fileadmin/verdana.ttf
10.fontSize = 12
10.offset = 5,15
}

}

temp.10.2 = GMENU
temp.10.2.NO {
backColor = |*| #cccccc || #aaaaaa |*|
XY = 140, 20
10 = TEXT
10.text.field = title
10.offset = 5,13
10.fontSize = 11
10.fontFace = fileadmin/verdana.ttf

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

30 < .20
30.align = r

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

50 = |*||*|    || BOX
50.dimensions = 0,0,140,2
50.color = #000000
50.align = ,b


}

} - ERROR: Line 54: An end brace is in excess.


seite.10 = TEMPLATE
seite.10 {
template = FILE
template.file = fileadmin/lmenu_templ.html
workOnSubpart = DOKUMENT
marks.MENUE < temp.10
}
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
Mit Zitat antworten
  #9  
Alt 12.05.06, 20:07
Forum Stammgast
 
Registriert seit: 02.03.06
Beiträge: 132

Ich wuste, das nach einer öffenen KLammer Also {
nicht mehr von Typo3 gelesen wird.

Aber das das auch nach einer Schließende Klammer } der Fall ist... war mir noch nicht bewußt.

@typotyp Schön das es gelöst ist.

Lieben Gruß

Tevsa
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
Mit Zitat antworten
Antwort

Lesezeichen

Themen-Optionen
Ansicht Thema bewerten
Thema bewerten:

Forumregeln
Es ist Ihnen nicht erlaubt, neue Themen zu verfassen.
Es ist Ihnen nicht erlaubt, auf Beiträge zu antworten.
Es ist Ihnen nicht erlaubt, Anhänge hochzuladen.
Es ist Ihnen nicht erlaubt, Ihre Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are an


Ähnliche Themen
Thema Autor Forum Antworten Letzter Beitrag
Layer Menu - (GMENU_LAYERS) formatieren (mit CSS?) fear4 GMENU, HMENU, TMENU und Co. 6 20.06.07 10:55
Menü klappt nicht auf capct GMENU, HMENU, TMENU und Co. 6 29.06.06 07:27
Menü klappt nicht auf Mauki GMENU, HMENU, TMENU und Co. 9 21.04.06 07:52
Neues Template - Menü klappt nicht auf renegade GMENU, HMENU, TMENU und Co. 4 21.12.05 08:50


Alle Zeitangaben in WEZ +1. Es ist jetzt 23:46 Uhr.


Powered by vBulletin® Version 3.7.3 (Deutsch)
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0