jahia_calendar default value

Hilbert Schraal <[email protected]>
Newsgroups gmane.comp.cms.jahia.template
Organization Wisdom
Message-ID <1135172992.11038.14.camel@localhost>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.