![]() |
|
|
|
|
Issue Type:
|
Task
|
|
Assignee:
|
Antti Hietala
|
|
Created:
|
17/Jul/13 10:50 AM
|
|
Description:
|
Look at old Public User Configuration:
http://demoauthor45.magnolia-cms.com/.magnolia/pages/adminCentral.html
under Configuration:modules/public-user-registration/config
New Public User Configuration:
- MGNLPUR-89 allowed configuration for multiple sites (only one default site at screenshot, see attached screenshot)
- UserProfile class is now configured under userProfileConfiguration/userProfileClass
- We can add extraUserProperties node with properties which will be automatically populated in case of custom UserProfile.
How to create and use custom profile class:
- extend info.magnolia.module.publicuserregistration.UserProfile
- add some extra property, you have to add its setter and getter:
public class CustomUserProfile extends UserProfile {
private String extraParameter = "";
public String getExtraParameter() {
return extraParameter;
}
public void setExtraParameter(String extraParameter) {
this.extraParameter = extraParameter;
}
}
- add YOUR_PROPERTY_NAME ("extraParameter") under Configuration:modules/public-user-registration/config/configurations/NAME_OF_YOUR_SITE/userProfileConfiguration/extraUserProperties (see attached screenshot)
How to test it:
- add new form field named YOUR_PROPERTY_NAME ("extraParameter") to http://localhost:8080/magnoliaAuthor/demo-project/members-area/registration.html
- go to http://localhost:8080/magnoliaPublic/demo-project/members-area/registration.html and registrer new user
- go to http://localhost:8080/magnoliaPublic/.magnolia/pages/adminCentral.html, export user and check that YOUR_PROPERTY_NAME ("extraParameter") is in XML export
In 4.5.9 and prior was not possible to use custom UserProfile class because of bug in PUR module, see MGNLPUR-93.
|
|
Project:
|
Documentation
|
|
Priority:
|
Neutral
|
|
Reporter:
|
Roman Kovařík
|
|
Security Level:
|
Public |
|
|
|
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
|
----------------------------------------------------------------
For list details, see: http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <
[email protected]>
----------------------------------------------------------------