Hallo,
also ich bin blutiger Anfänger was Typo3 betrifft. Ich hab das Problem, dass mein Content nicht angezeigt wird. Ich weiss es gibt schon einige Threads diesbezüglich, aber bei meinem Problem haben sie mir nicht weitergeholfen.
Ich bin im Prinzip nach dem Tutorium auf Typo3.org Grundlagen.ModernTemplate vorgegangen.
Dabei dann folgendes Setup erstellt.
# Configuring the Auto-Parser for main template:
plugin.tx_automaketemplate_pi1 {
# Read the template file:
content = FILE
content.file = fileadmin/template/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
DIV.all=1
}
# Prefix all relative paths with this value:
relPathPrefix = fileadmin/template/main/
}
#-------------------------------------------------------------------------
#-------------------------------------------------------------------------
# Menu 1 cObject
temp.menu_1 = HMENU
# First level menu-object, textual
temp.menu_1.1 = TMENU
temp.menu_1.1 {
# Normal state properties
NO.allWrap = <div class="button_no"> | </div>
# Enable active state and set properties:
ACT = 1
ACT.allWrap = <div class="button_act"> | </div>
}
#-------------------------------------------------------------------------
#--------------------------------------------------------------------------
# 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 ###menue2### subpart with some example content:
subparts.menue2 < temp.menu_1
# Substitute the ###highlightedbox### subpart with some example content:
subparts.highlightedbox< styles.content.get
}
#----------------------------------------------------------------------------
#--------------------------------------------------------------------------
# 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
# 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
Die Zeile die mich zur Verzweiflung bringt ist:
subparts.highlightedbox< styles.content.get
Ändere ich diese ab in:
subparts.content< styles.content.get
wird der Inhalt auch im subpart content ausgegeben.
Der subpart highlightedbox ist aber auch im automatisch generierten Template enthalten.
Static Template für styles.content.get hab ich auch eingefügt.
Jemand ne spontane Idee, wo mein Fehler liegt? #paralyzed#