Hallo
Eigentlich recht peinlich, aber ich kriege das mit den verschiedenen Contentspalten (trotz Studiums verschiedener Threads) nicht hin. Der Marker content wird ersetzt, der Marker content_right jedoch nicht. Hier der TS-Code:
// --- SET UP TEMPLATE SELECTOR -----------------------------------------------
plugin.tx_rlmptmplselector_pi1 {
// Define the paths leading to our HTML template files
templatePathMain = fileadmin/templates/
templatePathSub = fileadmin/templates/sub/
// Define the filenames used as the default HTML templates
defaultTemplateFileNameMain = Temp.html
defaultTemplateFileNameSub = einspaltig.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
#######################################
# Template type. Default is "main". Allowed values: "main", "sub"
templateType = main
# Refers to the default template object to use
# if no value is set for the current page
defaultTemplateObjectMain = 10
defaultTemplateObjectSub = 10
# Contains TEMPLATE objects for TS mode (vs. external HTML file mode)
templateObjects.main =
templateObjects.sub =
}
// --- CONFIGURE THE AUTOMAKETEMPLATE EXTENSION --------------------------
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
TD.all = 1
DIV.all = 1
}
relPathPrefix = fileadmin/templates/
}
// --- CREATE TS TEMPLATES FOR MAIN AND CONTENT AREA ------------------
temp.headTemplate = TEMPLATE
temp.headTemplate {
template =< plugin.tx_automaketemplate_pi1
workOnSubpart = DOCUMENT_HEADER
}
temp.contentAreaTemplate = TEMPLATE
temp.contentAreaTemplate {
template =< plugin.tx_automaketemplate_pi1
// Modify the template selector config: This is a sub template!
template.content.templateType = sub
workOnSubpart = DOCUMENT_BODY
subparts.content < styles.content.get
}
temp.mainTemplate = TEMPLATE
temp.mainTemplate {
template =< plugin.tx_automaketemplate_pi1
// Modify the template selector config: This is a main template!
template.content.templateType = main
template.content.templateType = fileadmin/templates/main/Temp.html
workOnSubpart = DOCUMENT_BODY
subparts.content-normal < temp.contentAreaTemplate
}
#MENUS
[...]
temp.mainTemplate.subparts.content = CONTENT
temp.mainTemplate.subparts.content.table = tt_content
temp.mainTemplate.subparts.content.select.pidInList = this
temp.mainTemplate.subparts.content.select.orderBy = sorting
temp.mainTemplate.subparts.content.select.where = colPos=0
temp.mainTemplate.subparts.content.select.languageField=sys_language_uid
temp.temp.mainTemplate.subparts.content_right = CONTENT
temp.temp.mainTemplate.subparts.content_right.table = tt_content
temp.temp.mainTemplate.subparts.content_right.select.pidInList = this
temp.temp.mainTemplate.subparts.content_right.select.orderBy = sorting
temp.temp.mainTemplate.subparts.content_right.select.where = colPos=2
temp.temp.mainTemplate.subparts.content_right.select.languageField=sys_language_uid
page.stylesheet = fileadmin/templates/bnstyle.css
page.shortcutIcon = fileadmin/templates/favicon.ico
page.headerData.999 = TEXT
page.headerData.999.value (
<script src="/fileadmin/templates/print.js" type="text/javascript"></script>
)
page.bodyTag (
<body background="/fileadmin/pics/wallpaper.gif" marginheight="0" topmargin="0" vspace="0" marginwidth="0" leftmargin="0" hspace="0" style="margin:0">
)
page.target = _top
page = PAGE
page.typeNum = 0
page.20 < temp.mainTemplate
page.20.target = _top
config.simulateStaticDocuments = 1
config.simulateStaticDocuments_noTypeIfNoTitle = 1
config.index_enable = 1
config.enable_externals = 1
config.language = de
lib.stdheader.5.wrap = |:<br />
lib.stdheader.10.1.fontTag=<b>|</b>
lib.stdheader.10.2.fontTag=<b>|</b>
lib.stdheader.10.3.fontTag=<b>|</b>
lib.stdheader.10.4.fontTag=<b>|</b>
Und hier (vereinfacht) das HTML-Template:
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td id="content">###CONTENT_LEFT###</td>
<td><img src="/fileadmin/pics/pixel.gif" width="5" alt="" /></td>
<td id="content_right" align="right">###CONTENT_RIGHT###</td>
</tr>
</table>
Was mache ich bloss falsch?
Danke im Voraus für jede Hilfe 🙂
-Gsicht