[TYPO3-english] Last updated in the Edit page properties
Jigal van Hemert
jigal at xs4all.nl
Sat May 22 20:23:21 CEST 2010
PeterBawl wrote:
> Of course I have googled and tried some examples including the one you
> suggest, but they don´t work. What I get is the current date and time,
> not the value at the "Last updated" field in the "Edit page properties".
If you really need an almost cut'n'paste solution:
10 = TEXT
10 {
# first try to read the page property "Last updated"
# (this is 'datA' with an 'A' at the end!)
data = page:lastUpdated
# apply date formatting
# (this is 'datE' with an 'E' at the end!)
date = l, F d/Y
# wrap in a nice div with some text
wrap = <div class="lastupdate">Page updated: |</div>
# if "Last updated" field was empty, use the date
# that TYPO3 registered for the last change
ifEmpty.data = register:SYS_LASTCHANGED
}
--
Jigal van Hemert.
More information about the TYPO3-english
mailing list