Last Update

In order to display the last modification date of a page, you just have to add a placeholder ###MAJ### in your HTML template and append the TypoScript code below to your TemplateTS:

temp.lastUpdate = TEXT
temp.lastUpdate {
    data = page:lastUpdated
    if.isTrue.data = page:lastUpdated
            #Non localizable version
        #date = d.m.Y
            #Localizable version
        strftime = %x
        data = register : SYS_LASTCHANGED
    if >
}

The link the definition to the placeholder:

page.10 {
    workOnSubpart = DOCUMENT
    marks.MAJ < temp.lastUpdate
}

Author of Last Modification

If you wish to show the author of the last modification, you first need to install extension  fhm_author.

Then you have to use the following snippet:

temp.lastUpdate = COA
 
temp.lastUpdate.10 = TEXT
temp.lastUpdate.10 {
    data = page:lastUpdated
    if.isTrue.data = page:lastUpdated
        date = d.m.Y
        data = register : SYS_LASTCHANGED
    if >
}
 
temp.lastUpdate.20 = TEXT
temp.lastUpdate.20 {
    data = page:author
    typolink.parameter.data = page:author_email
    wrap = &nbsp;(|)
}
Flattr