我想对用于添加和编辑用户的表单进行一些增强。在我的要求中,我仅使用网站,因此我不想使用组织和用户组部分。我想隐藏用户创建和编辑表单中的某些部分。引用一些网络搜索,我创建了具有以下内容的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 后,更改仅反射(reflect)在“我的帐户”选项卡中。但我也想反射(reflect)用户创建和用户编辑表单中的相同变化。我怎样才能做到这一点?是否有任何特定的配置可以执行相同的操作或者我错过了一些步骤?或者如果我们想通过Hooks进行增强,在哪里可以找到添加和编辑用户表单的源代码文件?
最佳答案
以下是门户属性,用于设置您想要在用户添加/编辑屏幕中显示哪些部分。
#
# 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
关于liferay - 在 liferay 门户中自定义用户管理的问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29260135/