Moin!
Ich möchte mein Title Tag dynamisch aus dem Seitenamen Rootlevel, Seitennamen der aktuellen Seite und dem Untertitel erstellen. Mein TS sieht wie folgt aus. Ich habe hier schon viele Variante gesehen, aber keine die das TITLE Tag in den Auto Parser pasten.....
Kann mit jemand helfen? Hier mein TS Code:
Code:
[GLOBAL]
# Allgemeine Einstellungen
config.doctype = xhtml_trans
config.xhtml_cleaning = all
# dafür sorgen, dass IE nicht in den Quirks-Modus geht
[browser = msie]
config.doctypeSwitch = 1
[global]
# PAGE OBject
page = PAGE
page.typeNum = 0
#copying the content from TEMPLATE for body slection
page.10 < temp.mainTemplate
# copying the content for the HEAD section
page.headerData.10 < temp.headTemplate
# autoparser config
plugin.tx_automaketemplate_pi1 {
#Read Template
content = FILE
content.file = xxx/xxx/xxx/xxx.html
# set subpart comment
elements {
BODY.all = 1
BODY.all.subpartMarker = DOCUMENT_BODY
HEAD.all = 1
HEAD.all.subpartMarker = DOCUMENT_HEADER
DIV.all = 1
LI.all = 1
}
#prefix part for static files
relPathPrefix = xx/
}
#Menu 1 cObject
temp.menu_frame = HMENU
# First level menu-object, textual
temp.menu_frame.1 = TMENU
temp.menu_frame.1 {
# Normal state properties
NO.allWrap = <div class="xxl1no"> | </div>
# Enable active state and set properties:
ACT = 1
ACT.allWrap = <div class="xxlact"> | </div>
}
# Second level menu-object, textual
temp.menu_frame.2 = TMENU
temp.menu_frame.2 {
# Normal state properties
NO.allWrap = <div class="xx2no"> | </div>
# Enable active state and set properties:
ACT = 1
ACT.allWrap = <div class="xx2act"> | </div>
}# Temp for Body
temp.mainTemplate = TEMPLATE
temp.mainTemplate {
#feeding content from autoparser
template =< plugin.tx_automaketemplate_pi1
#Select content between BODY
workOnSubpart = DOCUMENT_BODY
#substitute the menu_frame subpart
subparts.menu_frame < temp.menu_frame
#substitute content subpart
subparts.content < styles.content.get
#substitute content subpart
subparts.left < styles.content.getLeft
}
# main Template for the HEAD
temp.headTemplate = TEMPLATE
temp.headTemplate {
#auto parser feed
template =< plugin.tx_automaketemplate_pi1
# select content between head tags
workOnSubpart = DOCUMENT_HEADER
}