[xwiki-users] Default value for 'static list' class property
Hi. Is it possible to assign default value for class property of 'static list' ? TIA, R.
On Fri, Sep 21, 2012 at 3:52 PM, Ryszard Łach <[email protected]> wrote:
Hi.
Is it possible to assign default value for class property of 'static list' ?
Yes, but not in the class. What we usually do is create a "template" page that has an object of that type (class) and set there the default value for each object property. Then we use this template to create new pages. See http://platform.xwiki.org/xwiki/bin/view/DevGuide/FAQTutorial#HAuthoringTemp... and http://platform.xwiki.org/xwiki/bin/view/Features/Forms . Hope this helps, Marius
TIA,
R.
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
On 09/24/12 09:53, Marius Dumitru Florea wrote:
Yes, but not in the class. What we usually do is create a "template" page that has an object of that type (class) and set there the default value for each object property. Then we use this template to create new pages. See http://platform.xwiki.org/xwiki/bin/view/DevGuide/FAQTutorial#HAuthoringTemp... and http://platform.xwiki.org/xwiki/bin/view/Features/Forms .
Hope this helps,
Yes, I'm using templates too. No idea why I didn't found the simpliest solution ;-), thanks. Cheers, R.
participants (2)
-
Marius Dumitru Florea -
Ryszard Łach