Foren
Custom attributes in Create Account Page
Daniel Aschauer, geändert vor 11 Jahren.
Custom attributes in Create Account Page
Junior Member Beiträge: 39 Beitrittsdatum: 22.10.12 Neueste Beiträge
Hi!
I want to add some of my custom attributes to the create account page.
Therefore I have created a hook for the create_account.jsp where I added the following:
but the field is never showed.
As well I tried to add it that way:
In that case the field is showed but the value that is entered is never stored.
What am I doing wrong / or what may be missing in my approach? Sure, I have create the custom attribute itself before!
Thanks,
Daniel
I want to add some of my custom attributes to the create account page.
Therefore I have created a hook for the create_account.jsp where I added the following:
<liferay-ui:custom-attribute className="<%= User.class.getName() %>" classPK="<%= 0 %>" editable="<%= true %>" label="<%= true %>" name="referred" />
but the field is never showed.
As well I tried to add it that way:
<aui:input name="ExpandoAttribute--referred--" />
In that case the field is showed but the value that is entered is never stored.
What am I doing wrong / or what may be missing in my approach? Sure, I have create the custom attribute itself before!
Thanks,
Daniel
Daniel Aschauer, geändert vor 11 Jahren.
RE: Custom attributes in Create Account Page
Junior Member Beiträge: 39 Beitrittsdatum: 22.10.12 Neueste Beiträge
To answer my own question:
In fact the code i posted is correct, as e.g.
The reason why the field was not shown in my case, was because of the permissions for the custom field that were not right.
In fact the code i posted is correct, as e.g.
<aui:input name="ExpandoAttribute--referred--" />
The reason why the field was not shown in my case, was because of the permissions for the custom field that were not right.