掲示板

Custom attributes in Create Account Page

11年前 に Daniel Aschauer によって更新されました。

Custom attributes in Create Account Page

Junior Member 投稿: 39 参加年月日: 12/10/22 最新の投稿
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:

<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
10年前 に Daniel Aschauer によって更新されました。

RE: Custom attributes in Create Account Page

Junior Member 投稿: 39 参加年月日: 12/10/22 最新の投稿
To answer my own question:
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.