Hallo,
zuerst bin grade erst dabei mich in TYPO3 einzuarbeiten und hoffe das ich hier in das richtige Forum poste.
So nun meine Ausgangssituation:
TYPO3 Verseion: 4.1.1
Extension:
- CSS styled content
- Template Auto-parser
Nun habe ich ein HTML Template. In dieses habe ich einen neuen DIV-Container eingebaut:
<div id="menu_1">
:
</div>
<div id="rootline">test</div>
<div id="content">
:
</div>
Es geht um den Container mit der id="rootline".
Anschliessen konfiguriere ich den Auotparser:
# Configuring the Auto-Parser for main template:
plugin.tx_automaketemplate_pi1 {
# Read the template file:
content = FILE
content.file = fileadmin/template/main/template_test.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.all = 1
}
# Prefix all relative paths with this value:
relPathPrefix = fileadmin/template/main/
}
Nun möchte ich den Subparts Inhalte zuweisen:
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 ###content### subpart with some example content:
subparts.content < styles.content.get
subparts.rootline = Text
subparts.rootline.value = Ein Text
# Substitute the ###menu_1### subpart with dynamic menu:
subparts.menu_1 < lib.menu
}
Bei allen Subparts klappt das, nur bei dem rootline nicht. Wenn ich die Seite aufrufe und dann den Quellcode anschaue fehlt der Container "rootline" auch:
<!--###news### begin -->
<!--###news### end --></div>
<div id="menu_1"></div>
<div id="content">
<!-- CONTENT ELEMENT, uid:5/text [begin] -->
Weiß jemand warum? Rufe ich das Template direkt im Browser auf wird auch der neue Div-Container angezeigt. Den Browser-Cache habe ich auch schon geleert. Hoffe das mein Problem verständlich ist und ich mich nicht zu dumm anstelle.
MFG
ronaldo