On Jan 26, 2010, at 4:15 PM, Guillaume Lerouge wrote: > Hi, > > On Tue, Jan 26, 2010 at 4:09 PM, Sergiu Dumitriu <ser...@xwiki.com> wrote: > >> On 01/26/2010 02:30 PM, Guillaume Lerouge wrote: >>> Hi Valdis, >>> >>> On Tue, Jan 26, 2010 at 12:52 PM, Valdis Vītoliņš<valdis.vitol...@odo.lv >>> wrote: >>> >>>> For custom application I need to add more properties >>>> for ../xwiki/bin/edit/XWiki/XWikiUsers?editor=class >>>> Is it acceptable/recommended way or other (more complicated?) approach >>>> would be better? >>>> Do you have any experience? >>>> >>> >>> It would work. However I'd recommend an alternative approach: >>> >>> - Create a XWiki.ExtendUserClass holding your properties >>> - Add an object from this class to your user profiles >>> - Use it to store information >> >> I also recommend this, but there's a problem: creating a new user only >> adds the XWikiUsers object, since it doesn't create documents based on a >> template. This means that somewhere you'll have to add this object. >> >> A solution is to put a check in the user sheet, similar to what is done >> for WebPreferences and a missing XWikiPreferences object. >> >> #if(!$doc.getObject('XWiki.ExtendUserClass')) >> $response.sendRedirect($doc.getURL('objectadd', >> 'classname=XWiki.ExtendUserClass')) >> #end >> > > By the way, this reminds me that right now the WebPreferences page is > created in syntax 2.0 while its content is XWiki 1.0 syntax that doesn't get > displayed correctly.
I cannot reproduce this. Can you give the steps to reproduce? thanks -Vincent > > Guillaule > > >>> This way you can upgrade the XWikiUsers class when needed. >>> >>> Guillaume _______________________________________________ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users