Last Update
Here is the latest code for Last Update. This is the typoscript I am using in Setup of one of my Autoparser extension templates:
# Page Last Updated:
temp.lastupdate = TEXT
temp.lastupdate {
data = page:lastUpdated
if.isTrue.data = page:lastUpdated
date = l, F d/Y
wrap = <div class="lastupdate">Page updated: |</div>
data = register : SYS_LASTCHANGED
if >
}
Setup Code of the ext: Main cObject Subparts Typo3 Template:
subparts.lastupdate < temp.lastupdate
HTML Template marker:
<!-- Start Lastupdate -->
<div id="lastupdate">lastupdate</div>
<!-- End Lastupdate -->
CSS code for the lastupdate class:
/* Lastupdate Container and class */
#lastupdate {
width: 725px !important;
width: 750px;
background: #E0E0E0; /* light grey */
padding: 5px 15px 5px 10px;
font-size: 10px;
line-height: 1.5em;
color: #364061; /* blue grey */
text-align: right;
border-top: 3px solid #AFB6D0;
border-bottom: 3px solid #AFB6D0;
}
To see the code in action scroll down to the bottom of the page where you will see this output:
Page updated: Monday, March 07/2005


