> > >> For custom application I need to add more properties
> > >> for ../xwiki/bin/edit/XWiki/XWikiUsers?editor=class
> > >> Do you have any experience?
> > > - 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
>
>
> This works (though need not to be scared and save it)
> for user's wiki document content another line should be added to show
> data properly:
> #includeForm("XWiki.XWikiUsersExtSheet")
Solved this adding this line at the end of
"/xwiki/bin/edit/XWiki/XWikiUserSheet" ;-)
Valdis
_______________________________________________
users mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/users