hi

you have to import these files too:

info.magnolia.cms.core.Content
info.magnolia.cms.core.MetaData
java.text.SimpleDateFormat
java.text.FieldPosition

then it works fine. but i have a problem.
i want the date in this format: "18 Juli 2005"
so i use "d MMMM yyyy" as pattern. but i get the months in englisch. how to get them in german?
can anyone help me.

thanks

axel
----- Original Message ----- From: "goodusername" <user-list-O8DnXSz/wDok+I/[EMAIL PROTECTED]>
Newsgroups: gmane.comp.cms.magnolia.user
Sent: Thursday, August 18, 2005 1:22 AM
Subject: Re: include last modification date in footer.jsp


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


----------------------------------------------------------------
for list details see
http://www.magnolia.info/en/magnolia/developer.html
----------------------------------------------------------------

Reply via email to