cancel
Showing results for 
Search instead for 
Did you mean: 

Add more fields to user registration

bountard
Champ in-the-making
Champ in-the-making
Hello, i've been using Alfresco for a few months now and am very satisfied with it.

I've been trying to add more fields for the admin to fill when he adds a new user to Alfresco.
For now in Alfresco you can add : First name, last name and email. I'd like to add phone number too.
Maybe someone could give me some pointers on how to do this?

Thanks for reading.
1 REPLY 1

gavinc
Champ in-the-making
Champ in-the-making
Unfortunately this is the one remaining wizard that has not been converted to the new framework and so makes it a fairly involved process and requires changes to Alfresco source files. This will hopefully be adressed in the next release (2.2).

To make the changes you want you will need to add an extra field(s) on the JSP, in this case /jsp/wizard/new-user/user-properties.jsp. You will then ned to add the getter/setter methods to the backing bean, in this case that will be org.alfresco.web.bean.wizard.NewUserWizard. Finally, update the finish() method in NewUserWizard to add your properties.

NOTE: To edit the user details, you'll also need to update the populate() method.