Einzelnen Beitrag anzeigen
  #1  
Alt 10.08.08, 12:17
Diestelhenne Diestelhenne ist offline
Forum Zuschauer
 
Registriert seit: 07.08.08
Alter: 16
Beiträge: 3

Problem bei Template-Erstellung


Moin!

Ich bin absoluter TYPO3-Newbie und möchte dieses HTML-Template: http://www.styleshout.com/templates/...nvision1-1.zip (Live-Preview: Envision) als Template in TYPO3 einsetzen. Dazu bin ich nach dem Modern Template Building Tutorial vorgegangen.

Das Setup-Feld des Templates enthält jetzt folgenden Inhalt:
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:
# Configuring the Auto-Parser:

plugin.tx_automaketemplate_pi1 {

    # Read the template file:
content = FILE
content.file = fileadmin/template/Envision1-1/index.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

UL.all = 1
DIV.all = 1
}

    # Prefix all relative paths with this value:
relPathPrefix = fileadmin/template/Envision1-1/
}


# Side Menu cObject
temp.sidemenu = HMENU
temp.sidemenu.1 = TMENU
temp.sidemenu.1 {
    # Normal state properties
NO.allWrap = <li> | </li>

    # Enable active state and set properties:
ACT = 1
ACT.allWrap = <li> | </li>
}


# 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 ###sidemenu### subpart with dynamic menu:
subparts.sidemenu < temp.sidemenu

    # Substitute the ###main### subpart with some example content:
subparts.main = TEXT
subparts.main.value = HELLO WORLD - CONTENT
}
# Main TEMPLATE cObject for the HEAD
temp.headTemplate = TEMPLATE

temp.headTemplate {
#Feeding the content from the Auto-parser to the TEMPLATE cObject:[b] - ERROR:[/b] Line 62: Object Name String, "Feeding" was not preceeded by any operator, =<>({
template =< plugin.tx_automaketemplate_pi1

    # Select only the content between the <head>-tags
workOnSubpart = DOCUMENT_HEADER
}

# Default PAGE object:
page = PAGE
page.typeNum = 0
page.config.disableAllHeaderCode=1

page.10 =< plugin.tx_automaketemplate_pi1
Der Source der ausgegebenen Seite so: File-Upload.net - myfirsttypo3.html . Die Menüs auf der rechten Seite werden jedoch nicht ersetzt. Meine Frage: Wieso?

Ich hoffe, ihr könnt mir helfen.

Danke im Voraus.
Mit Zitat antworten
TYPO3forum.net empfiehlt den T3N Testsieger: Bestes Preis-Leistungs-Verhältnis (Ausgabe 12/2008)