Hi Adrian

As a first simple answer: You can add new dialog controls to the "useredit" dialog. You will find the dialog in the "Configuration" section (modules/adminInterface/dialogs/useredit). All you have to do is add new "controls" (new content nodes). When using the dialog to add content it will automatically add the new content to the user repository. In addition you might want to extend the Magnolia user classes to return the new property values.

Keep in mind though that you should also prepare a "Magnolia Update Scenario", because if you want to update Magnolia, you must be prepared to update "adminInterface" with your custom dialogs and check whatever class you have extended.

Therefore another idea could be to use the data module and be "independent" of above extensions. There you create a new nodetype and add the required fields (controls) to the dialog. When you create a new node, use the same user id as name. You then can write your own Java code to read the content. In one project I extended the PUR module (Public User Registration) to not only add a new user, but also create a new data module node with other profile information (like e- mail, phone, etc.).

HTH
Giancarlo


On Feb 16, 2009, at 12:20 PM, Adrian Butnaru wrote:


Hi,
How can I add to Users repository a new field for Users (for example age, gender, address)? I also want to see some of these (ex. gender) in the AdminCentral. The other should be available in the Dialog.
Can anybody give me some instructions?

Regards,
Adrian



----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------




----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------

Reply via email to