Is it possible to add Extra Fields Under Create User in Liferay

前端 未结 5 695
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-29 13:06

I am using Liferay 6 for portal Development . During Creating Users under Liferay , i need to add some extra Fields also ?? Please let me know if this is ppossible or not ??

5条回答
  •  攒了一身酷
    2020-12-29 13:36

    yes, you can add custom fields to user-entity and add them the field-values to user:

    user.getExpandoBridge().addAttribute(...);
    

    Custim field for the user-entity you can create by Control Panel Portal->Custom Fields or programmaticaly at liferay start.

    The data will be stored in ExpandoValue tables.

提交回复
热议问题