留言板

Custom attributes in Create Account Page

Daniel Aschauer,修改在11 年前。

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
Daniel Aschauer,修改在11 年前。

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.