Von: Sergiu Dumitriu <sergiu(a)xwiki.com>
An: XWiki Users <users(a)xwiki.org>
Cc:
Gesendet: 7:34 Sonntag, 5.Februar 2012
Betreff: Re: [xwiki-users] default date: tody
On 02/04/2012 06:40 AM, O Voss wrote:
Hi,
I have a date field in a class that I want to default to the day of
creation. I
have set empty is today to 1 and thought that would do it. But it
seems this set's the date to the creation date of the class rather than to
that of new objects.
Not quite, it's the date of the class template.
The problem is that you enabled "empty is today" before creating the
document template. New documents are created by cloning the template first, and
instead of cloning an empty date, you clone an existing date. I know it's
not very user-friendly, this should be fixed in the future.
There's a workaround for this:
- delete the class template
- edit the class and uncheck empty is today
- create the template again
- edit the class and check back empty is today
See if it works fine this way.
-- Sergiu Dumitriu
http://purl.org/net/sergiu/
_______________________________________________
users mailing list
users(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users