Hallo.
Ich wollte mir mal eine "Last Updated"-Zeile auf meine Seite setzten aber Typo3 weigert sich, mir etwas anzuzeigen. Folgendes habe ich gemacht:
Constants:
styles.content.lastUpdate.label = Page last updated:
styles.content.lastUpdate.comment_auto =
styles.content.lastUpdate.wrap = <div class="lastupdate">|</div>
styles.content.lastUpdate.format = l, F j, Y
Setup:
# 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
subparts.lastupdate < styles.content.lastupdate
}
#Page last updated
subparts.lastupdate = TEXT
subparts.lastupdate {
data = page:lastUpdated
if.isTrue.data = page:lastUpdated
date = d.M.Y
wrap = Seite zuletzt geändert: |
data = register : SYS_LASTCHANGED
if >
}
und in der HTML-Vorlage:
<div class="lastupdate"><!--###lastupdate### begin -->lastupdate<!--###lastupdate### end --></div>
...wobei die Kommentare vom Autoparser eingefügt werden.
Woran kann es nun liegen, das ist einfach keinen Text generiert bekomme?