Danke erstmal für Deine Antwort.
Also es ist so. Ich habe mir den Link mal angeschaut und alles darin sieht sehr einfach und logisch aus.
Allerdings habe ich meine Konfiguration anhand des Tutorials "Building modern templates part1" zusammengebastelt und ich weiß jetzt nicht wie ich deinen Lösungsvorschlag einbauen kann. 😉
Hier mal alles etwas ausführlicher, vielleicht wird mein Problem dann sichtbar.
Ich verwende Im HTML-Template folgende Marker für normal und rechts:
###content###
###content_right###
Und hier mein TS:
Zeile 70 ist für die rechte Spalte zuständig.
# Configuring the auto-parser
plugin.tx_automaketemplate_pi1{
# Read the template file
content = FILE
content.file = fileadmin/template1/main/template_1.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/template1/main/
}
# Menu1 cObject
temp.menu1 = HMENU
# Level 1
temp.menu1.1 = TMENU
temp.menu1.1{
# Normal state properties
NO.allWrap = <table border="0" cellspacing="0" cellpadding="0" width="100%"><tr><td><img src="fileadmin/template1/main/images/empty.gif" width="10" height="10" alt="" /></td><td class="menuItem">|</td></tr></table>
NO.ATagParams = class="menuLink"
# Enable actieve state properies
ACT = 1
ACT.allWrap = <table border="0" cellspacing="0" cellpadding="0" width="100%"><tr><td><img src="fileadmin/template1/main/images/arrow.gif" width="10" height="10" alt="" /></td><td class="menuItem">|</td></tr></table>
ACT.ATagParams = class="menuLink"
}
# Level 2
temp.menu1.2 = TMENU
temp.menu1.2{
# Normal state properties
NO.allWrap = <table border="0" cellspacing="0" cellpadding="0" width="100%"><tr><td><img src="fileadmin/template1/main/images/empty.gif" width="10" height="10" alt="" /></td><td><img src="fileadmin/template1/main/images/empty.gif" width="10" height="10" alt="" /></td><td class="menuItem">|</td></tr></table>
NO.ATagParams = class="menuLink"
# Enable actieve state properies
ACT = 1
ACT.allWrap = <table border="0" cellspacing="0" cellpadding="0" width="100%"><tr><td><img src="fileadmin/template1/main/images/empty.gif" width="10" height="10" alt="" /></td><td><img src="fileadmin/template1/main/images/arrow.gif" width="10" height="10" alt="" /></td><td class="menuItem">|</td></tr></table>
ACT.ATagParams = class="menuLink"
}
# Main TEMPLATE cObject for 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 <body>-tags
workOnSubpart = DOCUMENT_BODY
# Substitute the ###menu1### subpart with some example content:
subparts.menu1 < temp.menu1
# Substitute the ###content### subpart with some example content:
subparts.content < styles.content.get
# Substitute the ###content### subpart with some example content:
subparts.content_right < 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 <head>-tags
workOnSubpart = DOCUMENT_HEADER
}
# 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
Alles was ich nun will ist, dass in der rechten Spalte immer der Inhalt der rechten Spalte aus der Page mit der ID=2 angezeigt wird.
Noch Tipps? #paralyzed#