Hallo @ all!
Ich wollte den Template Selector einsetzten, da ich verschiedene Templateversionen einstezten will. Also habe ich nach Tuts gesucht und nur das Englische von Typo3.org gefunden! Aber irgendwie raff ich nicht was ich machen soll. Hat von euch jemand ein Deutsches TUT?
Oder kann mir einer so grob sagen was ich machen muss?
Hier meine Ausgangsdaten:
Maintemplates: template_1.html template_2.html
Subtempaltes: sub_1.html sub_2.html sub_3.html
Es soll immer das Sub_x.html in einen bestimmten Bereich von template_x.html eingefügt werden.
Tschüss Vinni10
So schlecht is die Doku auch wieder nicht. Das meiste müßte nach der Anleitung klappen.
Hier noch ein paar Tipps:
page.10.template =< plugin.tx_rlmptmplselector_pi1
Wichtig damit der Template-Selector die Kontrolle der Templates übernimmt.
Vielleicht ist es am Anfang besser erst mal nur die Haupttemplates zu verwenden - also ohne Sub. Das reicht meist auch schon aus.
Dann noch das:
####### TEMPLATE SELECTOR SETTINGS ######
plugin.tx_rlmptmplselector_pi1 {
templatePathMain = fileadmin/templates/main/
#templatePathSub = fileadmin/templates/sub/
templateType = main
defaultTemplateFileNameMain = pwa_3cols_tmpl.htm
#defaultTemplateFileNameSub = pwa_sub_3cols_tmpl.htm
inheritMainTemplates = 1
#inheritSubTemplates = 1
}
Und schon müßte es eigentlich klappen.
Viel Glück!
Michael
Hi nochmal!
Also ich hab das jetzt so gemacht wie du das gesagt hast aber der gibt den inhalt einfach nicht aus!
ich glaub mein code ist total falsch!
kannst du mir sagen wie ich die Rechte (###colright###), Normal (###content###) und links (###colleft###) anspreche?
plugin.tx_rlmptmplselector_pi1 {
// Define the paths leading to our HTML template files
templatePathMain = fileadmin/template/main/
#templatePathSub = fileadmin/template/sub/
templateType = main
// Define the filenames used as the default HTML templates
defaultTemplateFileNameMain = template_1.html
#defaultTemplateFileNameSub = sub_1.html
// If there is a page having no template selected, use a template
// selected earlier in the rootline. If there is none, use the default
inheritMainTemplates = 1
#inheritSubTemplates = 1
}
##############
# Configuring the Auto-Parser for main template:
plugin.tx_automaketemplate_pi1 {
content < plugin.tx_rlmptmplselector_pi1
elements {
BODY.all = 1
BODY.all.subpartMarker = DOCUMENT_BODY
HEAD.all = 1
HEAD.all.subpartMarker = DOCUMENT_HEADER
HEAD.rmTagSections = title
DIV.all = 1
TD.all = 1
}
relPathPrefix =
}
##############
#####MENÜS#####
###########
#simulateStaticDocuments config
config.simulateStaticDocuments = 0
config.baseURL = http://www.domain.de/
config.tx_realurl_enable = 1
config.prefixLocalAnchors = all
# 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.mainmenu < temp.mainmenu
# Substitute the ###menu_2### subpart with dynamic menu:
subparts.submenu < temp.submenu
# Substitute the ###rootline### subpart with dynamic menu:
subparts.rootline < temp.rootline
subparts.content < temp.content.get
subparts.collright < temp.content.getRight
subparts.colleft < temp.content.getBorder
}
# 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
}
##############
page = PAGE
page {
typeNum = 0
10 = TEMPLATE
10.template =< plugin.tx_rlmptmplselector_pi1
}
der code ist ziemlich zusammengezimmert!!!!
tschüss Vinni10
Hat sich erledigt!
Fehler im HTML Template!
Danke für die Hilfe!!
Tschüss Vinni0