Moin Moin,
Ich habe ein, für mich, sehr merkwürdiges Problem (Template angehängt).
Situation: Ich bin dabei eine Website zu bauen die auf der Startseite 4 Blöcke mit verschidenen inhalten hat. Bezeichnet sind diese als normal,left_content,right_content,border.
Problem: Normal wird mit den gewünschten Inhalten gefüllt. Je nachdem welchen Inhalt ich einfügen will wird right_content auch gefüllt, bzw. nur geleert. Aber left_content und border werden missachtet. Soll heißen, das dort die Inhalte aus dem HTML-file angezeigt werden.
Ich hoffe mein Problem ist verständlich rübergekommen.
edit: ich habe die Extensions "CSS styled content (css_styled_content)" und "Template Auto-parser (automaketemplate)" zusätzlich installiert.
edit: http://www.salzsee.info/cms/index.php?id=6 Falls ihr euch das problem ansehen wollt. (auf antwort hoff). Dort seht ihr das Normal content bekommt. Wie oben schon beschrieben bleibt right_content leer und left_content, sowie border bleiben komplett leer. Allerdings sind für alle Content-Bereiche Inhalte angelegt.
# Menu 1 cObject
temp.menu = HMENU
# First level menu-object, textual
temp.menu.1 = TMENU
temp.menu.1 {
# Normal state properties
NO.allWrap = <li> | </li>
# <li><a href="#">Startseite</a></li>
# Enable active state and set properties:
ACT = 1
ACT.allWrap = <li class="active"> | </li>
}
# Configuring the Auto-Parser for main template:
plugin.tx_automaketemplate_pi1 {
# Read the template file:
content = FILE
content.file = fileadmin/template/main/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
DIV.id.right_content = 1
DIV.id.left_content = 1
DIV.id.normal = 1
DIV.id.border = 1
UL.id.menu = 1
}
# Prefix all relative paths with this value:
relPathPrefix = fileadmin/template/main/
}
# 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### subpart with some example content:
# MENU
subparts.menu < temp.menu
# NORMAL
subparts.normal < styles.content.get
# RIGHT
subparts.right_content < styles.content.getRight
# LEFT
subparts.left_content < style.content.getLeft
# BORDER
subparts.border < styles.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
}
# Default PAGE object:
page = PAGE
page.typeNum = 0
page.10 < temp.mainTemplate
page.headerData.10 < temp.headTemplate