在liferay门户中自定义用户管理的问题

时间:2015-03-25 15:39:14

标签: liferay hook liferay-6 portlet liferay-aui

我想在用于添加和编辑用户的表单中进行一些增强。在我的要求中,我只使用网站,所以我不想使用组织和用户组部分。我想在用户创建和编辑表单中隐藏一些部分。参考一些网络搜索,我创建了properties-ext.properties文件,其中包含以下内容

users.form.my.account.main=details,password,sites,roles
users.form.my.account.identification=addresses,phone-numbers 
users.form.my.account.miscellaneous=announcements,comments

重新启动tomcat后,更改仅反映在“我的帐户”选项卡中。但我想反映用户创建和用户编辑表单中的相同更改。我怎样才能做到这一点?是否有任何特定的配置可以做同样的或我错过了一些步骤?或者如果我们想通过Hooks进行增强,我在哪里可以找到用于添加和编辑用户表单的源代码文件?

1 个答案:

答案 0 :(得分:2)

以下是门户网站属性,用于在“用户添​​加/编辑”屏幕中设置所需的部分。

#
# Input a list of sections that will be included as part of the user form
# when adding a user.
#
users.form.add.main=details,organizations,personal-site
users.form.add.identification=
users.form.add.miscellaneous=

#
# Input a list of sections that will be included as part of the user form
# when updating a user.
#
users.form.update.main=details,password,organizations,sites,user-groups,roles,personal-site,categorization
users.form.update.identification=addresses,phone-numbers,additional-email-addresses,websites,instant-messenger,social-network,sms,open-id
users.form.update.miscellaneous=announcements,display-settings,comments,custom-fields
相关问题