Hi all,
This example has been tried with Jahia 4.0.4.
I'm trying to set a default value to a jahia calendar as follows:
java.text.DateFormat dateFormat = new
java.text.SimpleDateFormat("dd MMM yyyy / HH:mm");
String publicatieDatum = "<jahia_calendar[dd mon yyyy / HH:MM]>"
+ dateFormat.format(new Date());
So, the string will look like:
"<jahia_calendar[dd mon yyyy / HH:MM]>21 Dec 2005 / 14:48"
This should be possible according to the following description:
A special tag ("<jahia_calendar[DateFormat]>") to set the date format,
followed by a default value.
In fact, I *do* see the default value in the date field, however, it is
not stored (the date is the publication date of an article).
Do I do something wrong, or is this a bug in Jahia?
thanks,
Hilbert