Antwort
 
LinkBack Themen-Optionen Thema bewerten Ansicht
  #1  
Alt 10.08.08, 12:17
Forum Zuschauer
 
Registriert seit: 07.08.08
Alter: 15
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.
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.08.08, 17:16
Benutzerbild von Päse
Forum Stammgast
 
Registriert seit: 15.10.06
Ort: Schweiz
Alter: 20
Beiträge: 188
Päse eine Nachricht über MSN schicken

Soviel ich noch in Erinnerung habe müssen bei automaketemplate die marker im Part "marks" angesprochen werden. Hier mal eine automaketemplate-like tsconf von einer älteren Seite, die ich mal gemacht hab. Vielleicht hilfts..

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:
plugin.tx_automaketemplate_pi1 {

content = FILE
content.file = fileadmin/template/index.html

elements {
HEAD.all = 1
HEAD.all.subpartMarker = DOCUMENT_HEAD

BODY.all = 1
BODY.all.subpartMarker = DOCUMENT_BODY
}

}

tmpl.body = TEMPLATE
tmpl.body {
template < plugin.tx_automaketemplate_pi1
workOnSubpart = DOCUMENT_BODY

marks { # < den hier bezeichne ich mal als "wichtig"

NAVIGATION = HMENU
# und hier jetzt die navi rein
}
}
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
HTML-Template einbinden nach Extension erstellung Junior Extension modifizieren oder neu erstellen 18 19.08.08 18:58
Anfängerproblem bei Template-Erstellung Diestelhenne TYPO3 4.x Backend 1 07.08.08 22:32
Template Erstellung Typo3 1000€ sofort Einfaches Layout marshimaro TYPO3-Jobs 3 27.10.07 22:55
Gelöst Problem mit Template-Erstellung tob1as TYPO3 4.x Fragen und Probleme 4 10.10.07 13:20
Template-Erstellung mit DIV Autumnfire HTML & CSS 4 12.05.06 12:50


Alle Zeitangaben in WEZ +1. Es ist jetzt 12:50 Uhr.


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