Hi Chris:
this is the code I use:
_________________________________________
<jsp:scriptlet>
Content activePage =
info.magnolia.cms.util.Resource.getActivePage(request);
MetaData meta = activePage.getMetaData();
//MetaData activationMeta =
activePage.getMetaData(MetaData.ACTIVATION_INFO);
SimpleDateFormat formatter = new SimpleDateFormat(somePattern);
String modDate = "";
String creationDate = "";
String activationDate = "";
modDate = (formatter.format(
meta.getModificationDate().getTime(), new StringBuffer(), new
FieldPosition(0) )).toString();
//activationDate = (formatter.format(
activationMeta.getLastActionDate().getTime(), new StringBuffer(), new
FieldPosition(0) )).toString();
</jsp:scriptlet>
${lblModificationDate}: <jsp:expression>modDate</jsp:expression><br
/>
________________________________________
and a question:
Activation date is a little confusing...
on author, activation date is the date of activation of the author page
on public, activation date is the date of activation of the public page,
again
and we never activate na public page, because public is the place were
activated pages are
therefore, if the page on public is created by an activation process,
then an Exception is thrown
the modification date, on the other hand, is the modification date of
the author page (before activating)
so it's not little, but very confusing...
could this be solved a bit more elegantly ???
thanx
Stojan
Christoph Breidert wrote:
Hi,
I'm testing Magnolia 2.1.
How can you add the modification date of each page in the footer
(footer.jsp)?
Thanks for hints,
Christoph
----------------------------------------------------------------
for list details see
http://www.magnolia.info/en/magnolia/developer.html
----------------------------------------------------------------
----------------------------------------------------------------
for list details see
http://www.magnolia.info/en/magnolia/developer.html
----------------------------------------------------------------