Einzelnen Beitrag anzeigen
  #1  
Alt 24.05.06, 10:09
dsone dsone ist offline
Forum Zuschauer
 
Registriert seit: 24.05.06
Beiträge: 5
Frage

Marker für Sprachmenü will einfach nicht funktionieren


Hallo zusammen,
habe folgendes Problem:

Mein Templavoila-Template ist sozusagen schon fast fertig, nur fehlen mir die Inhalte für die Markers. Habe nun schon alles ausprobiert was ich im Forum und bei Google finden konnte. Der ###SPRACHE### Marker wird einfach nicht durch das my_languageMenu.php ersetzt. Der Pfad stimmt auch (fileadmin/scripts/my_languageMenu.php). In meinem TypoScript habe ich noch weitere versuche drinnen (kommentiert) die auch nicht geklappt haben.

Das Einzigste was bisher geklappt hat war folgender Code.

Code:
page.20 = PHP_SCRIPT
page.20.file = fileadmin/scripts/my_languageMenu.php
Jedoch bringt mir dieser nicht sonderlich viel, da er den ###SPRACHE###-Marker nicht ersetzt.




Mein TypoScript:

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:
65:
66:
67:
68:
69:
70:
71:
72:
73:
74:
75:
76:
77:
78:
79:
80:
81:
82:
83:
84:
85:
86:
87:
88:
89:
90:
91:
92:
93:
94:
95:
96:
97:
98:
99:
100:
101:
102:
103:
104:
105:
page.10.marks.SPRACHE = PHP_SCRIPT
page.10.marks.SPRACHE.file = fileadmin/scripts/my_languageMenu.php

# Menu 1 cObject

lib.menu_1 = HMENU

# First level menu-object, textual
lib.menu_1.1 = TMENU
lib.menu_1.1 {
# Normal state properties
NO.allWrap = <div class="menu_level_1_no"> | </div>
NO.stdWrap.htmlSpecialChars = 1
# Enable active state and set properties:
ACT = 1
ACT.stdWrap.htmlSpecialChars = 1
ACT.allWrap = <div class="menu_level_1_act"> | </div>
}

# Second level menu-object, textual
lib.menu_1.2 = TMENU
lib.menu_1.2 {
# Normal state properties
NO.allWrap = <div class="menu_level_2_no"> | </div>
NO.stdWrap.htmlSpecialChars = 1
# Enable active state and set properties:
ACT = 1
ACT.stdWrap.htmlSpecialChars = 1
ACT.allWrap = <div class="menu_level_2_act"> | </div>
}

# Third level menu-object, textual
lib.menu_1.3 = TMENU
lib.menu_1.3 {
# Normal state properties
NO.allWrap = <div class="menu_level_3_no"> | </div>
NO.stdWrap.htmlSpecialChars = 1
# Enable active state and set properties:
ACT = 1
ACT.stdWrap.htmlSpecialChars = 1
ACT.allWrap = <div class="menu_level_3_act"> | </div>
}

# Fourth level menu-object, textual
lib.menu_1.4 = TMENU
lib.menu_1.4 {
# Normal state properties
NO.allWrap = <div class="menu_level_4_no"> | </div>
NO.stdWrap.htmlSpecialChars = 1
# Enable active state and set properties:
ACT = 1
ACT.stdWrap.htmlSpecialChars = 1
ACT.allWrap = <div class="menu_level_4_act"> | </div>
}

config.spamProtectEmailAddresses = 1

config.linkVars = L
config.sys_language_uid = 0
config.language = de
config.locale_all = de_DE

[globalVar = GP:L = 1]
config.sys_language_uid = 1
config.language = fr
config.locale_all = fr_FR
[global]

page = PAGE
page.typeNum = 0
page.10 = USER
page.10.userFunc = tx_templavoila_pi1->main_page

# Defining the Subpart "sprache"
#temp.sprache = PHP_SCRIPT
#temp.sprache.file = fileadmin/scripts/my_languageMenu.php

# Substitute the ###sprache### subpart
#subparts.sprache < temp.sprache

#page.20 = PHP_SCRIPT
#page.20.file = fileadmin/scripts/my_languageMenu.php

#marks.SPRACHE = PHP_SCRIPT
#marks.SPRACHE.file = fileadmin/scripts/my_languageMenu.php
#page.10.marks.SPRACHE = TEXT
#page.10.marks.SPRACHE.value = Hallo!

page.10 < temp.mainTemplate

# Copying the content from TEMPLATE for <head>-section:
page.headerData.10  < temp.headTemplate

page.10 {
marks.SPRACHE = PHP_SCRIPT
marks.SPRACHE {
file = fileadmin/scripts/my_languageMenu.php
}
}

page.config.removeDefaultJS = 1

page.headerData.5 = HTML
page.headerData.5 {
value = <link rel="stylesheet" type="text/css" href="fileadmin/templates/main/css_main.css" /><!--[if IE]><link rel="stylesheet" type="text/css" href="fileadmin/templates/main/css_main_ie.css" /><![endif]--> - ERROR: Line 104: The script is short of 1 end brace(s)

Hoffe hier kann mir jemand weiterhelfen... Danke schonmal.

Gruss
Patric

Geändert von dsone (08.01.08 um 11:20 Uhr).
Mit Zitat antworten
TYPO3forum.net empfiehlt den T3N Testsieger: Bestes Preis-Leistungs-Verhältnis (Ausgabe 12/2008)