Hallo,
also vorab ich bin absolut neu in Typo3, jedoch habe ich mich für die erste Erstellung meiner Seite an folgenden Anleitungen angelehnt: Modern Template Building. Meine Frontendausgabe ist zur Zeit unter http://cms.muc.hermos.com zu sehen.
Es hat bis jetzt alles gut geklappt auch die Navigation. Jedoch habe ich nun ein Problem: Es wird der "subpart" "<!--###Content### begin --><!--###Content### end -->" nicht mit dem Content ersetzt. Wenn ich jedoch folgende zwei Zeilen nutze, erhalte ich auch die entsprechende Ausgabe:
subparts.Content = TEXT
subparts.Content.value = HELLO WORLD - CONTENT
Nutze ich nun wie im Tutorial beschrieben folgenden Befehl:
subparts.Content < styles.content.get
Wird der Subpart nicht ersetzt.
Zur meiner Konfiguration: Ich habe die Extension "CSS Styled Content (BK)" installiert und im Haupttemplate im "Include static" Bereich eingebunden. Ich habe leider kein Ahnung was nicht klappt und warum. Leider konnte ich zu dem Them zwar viele Suchergebnise finden, nur funktioniert bei jedem die Ausgabe nur bei mir nicht. Selbstverständlich habe ich schon Content erstellt.
---------------------------------------
Ich hoffe ihr könnt mir weiter helfen.
Mit freundlichen Grüßen, Michael
Anbei Mein bzw. das abgewandelte Tutorial Typoscript:
# XHTML Valid
config {
disablePrefixComment = 1
xhtml_cleaning = all
doctype = xhtml_trans
doctypeSwitch = 1
xmlprologue = none
htmlTag_langKey = de
admPanel = 0
linkVars = style,layout,L
removeDefaultJS = external
inlineStyle2TempFile = 1
spamProtectEmailAddresses = 1
sys_language_uid = 0
language = de
locale_all = de_DE
}
# Configuring the Auto-Parser for main template:
plugin.tx_automaketemplate_pi1 {
# Read the template file:
content = FILE
content.file = fileadmin/template/index.htm
# 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/
}
# Menu 1 cObject
temp.HeadNav = HMENU
# First level menu-object, textual
temp.HeadNav.1 = TMENU
temp.HeadNav.1 {
# Normal state properties
NO.allWrap = <div class="menu-level1-no"> | </div>
NO.stdWrap.htmlSpecialChars = 1
# Enable active state and set properties:
ACT = 1
ACT.allWrap = <div class="menu-level1-act"> | </div>
ACT.stdWrap.htmlSpecialChars = 1
}
# Second level menu-object, textual
temp.HeadNav.2 = TMENU
temp.HeadNav.2 {
# Normal state properties
NO.allWrap = <div class="menu-level2-no"> | </div>
NO.stdWrap.htmlSpecialChars = 1
# Enable active state and set properties:
ACT = 1
ACT.allWrap = <div class="menu-level2-act"> | </div>
ACT.stdWrap.htmlSpecialChars = 1
}
# 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 ###HeadNav ### subpart with dynamic menu:
subparts.HeadNav < temp.HeadNav
# Substitute the ###Content### subpart with some example content:
subparts.Content < 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