Einzelnen Beitrag anzeigen
  #5  
Alt 08.04.08, 10:06
nolis nolis ist offline
Forum Newbie
 
Registriert seit: 08.03.08
Beiträge: 13

Hallo,
danke für die super schnelle Antwort, der einfachkeit halber poste ich hier gleich mal das komplette Setup, die Sprache befindet sich ganz am Schluss.

thx Noli ;-)

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:
106:
107:
108:
109:
110:
111:
112:
113:
114:
115:
116:
117:
118:
119:
120:
Configuring the Auto-Parser for main template: - ERROR: Line 0: Object Name String, "Configuring" was not preceeded by any operator, =<>({
plugin.tx_automaketemplate_pi1 {
    # Read the template file:
content = FILE
content.file = fileadmin/templates/main/filia_home/index2.html
    # Here we define which elements in the HTML that
    # should be wrapped in subpart-comments:
elements {
BODY.all = 1
BODY.all.subpartMarker = DOCUMENT_BODY
HEAD.all = 1
HEAD.all.subpartMarker = DOCUMENT_HEADER
HEAD.rmTagSections = title
TD.all = 1
}
    # Prefix all relative paths with this value:
relPathPrefix = fileadmin/templates/main/filia_home/
}

# Such Maschine
tt_content.search.20.noResultObj.10.value = Leider nichts gefunden.
tt_content.search.20.next.value = Nächstes
tt_content.search.20.prev.value = Zurück
tt_content.search.20.next.value = Weiter
tt_content.search.20.target = _self
tt_content.search.30.target = _self
tt_content.search.30.dataArray.10.label = Suche nach:
tt_content.search.30.dataArray.20.label = Suche in:
tt_content.search.30.dataArray.20.valueArray.10.label = Überschriften und Schlüsselwörtern
tt_content.search.30.dataArray.20.valueArray.20.label = Seiteninhalt
tt_content.search.30.dataArray.40.value = Suche starten
tt_content.search.20.renderObj.10.typolink.target = _self
tt_content.mailform.20.target = _self

# Menu 1 cObject
temp.menu_1 = HMENU
  # First level menu-object, textual
temp.menu_1.1 = TMENU
temp.menu_1.1 {
    # Normal state properties  
NO.allWrap =<td><img src="/fileadmin/templates/main/filia_home/blume.gif" width="15" height="15" />&nbsp;|&nbsp;</td>
NO.ATagParams = class="menu"
ACT.ATagParams = class="menu"
    # Enable active state and set properties:
ACT = 1
ACT.allWrap =<td><img src="/fileadmin/templates/main/filia_home/blume.gif" width="15" height="15" />&nbsp;|&nbsp;</td>
}
  # Second level menu-object, textual
temp.menu_1.2 = TMENU
temp.menu_1.2 {
    # Normal state properties
NO.allWrap = | &nbsp;
    # Enable active state and set properties:
ACT = 1
}

# Mail Form
tt_content.mailform.20.recipient >
tt_content.mailform.20.recipient = [email]office@cupspoiler.com[/email]

# Main TEMPLATE cObject for the BODY
temp.mainTemplate = TEMPLATE
temp.mainTemplate {
    # Feeding the content from the Auto-parser to the TEMPLATE cObject:
template =< plugin.tx_automaketemplate_pi1
    # Select only the content between the <body>-tags
workOnSubpart = DOCUMENT_BODY
  # Substitute the ###menu_1### subpart with dynamic menu:
subparts.menu_1 < temp.menu_1
# Substitute the ###content### subpart with some example content:
subparts.content < styles.content.get
# Substitute the ###content### subpart with some example content:
subparts.news < styles.content.getLeft
# Substitute the ###content### subpart with some example content:
subparts.intro < styles.content.getRight
}


# Main TEMPLATE cObject for the HEAD
temp.headTemplate = TEMPLATE
temp.headTemplate {
    # Feeding the content from the Auto-parser to the TEMPLATE cObject:
template =< plugin.tx_automaketemplate_pi1
    # Select only the content between the <head>-tags
workOnSubpart = DOCUMENT_HEADER
}

INHALT_RAND = CONTENT
INHALT_RAND {
table = tt_content
select {
where = colPos = 1
orderBy = sorting
languageField = sys_language_uid
}
}

# Default PAGE object:
page = PAGE
page.typeNum = 0
# Copying the content from TEMPLATE for <body>-section:
page.10 < temp.mainTemplate
# Copying the content from TEMPLATE for <head>-section:
page.headerData.10  < temp.headTemplate

# SprachVariable L initialisieren
config.linkVars = L

# Standardsprache UID 2 -> Englisch
[globalVar = GP:L = 2]
config.sys_language_uid = 2
config.language = en
config.locale_all = english

# Deutsch, sys_language.uid = 1
[globalVar = GP:L = 1]
config.sys_language_uid = 1
config.language = de
config.locale_all = de_DE
[global]
Mit Zitat antworten