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

标签 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 后,更改仅反射(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/

相关文章:

liferay - 是什么让 portlet 符合 JSR-286 要求?

java - 从 liferay portlet 下载 zip 压缩的 xml 文件文件夹

mysql - 如何将与 JBoss 捆绑的 Liferay 6.2 与 MySQL 数据库连接?

C# .net 发送 key 不使用 SendKey() 而是使用 Hook mabye

windows - 锁定或解锁 Windows XP 时运行脚本

liferay-6.1-实现自己的服务

java - 每个 Liferay JSP 都有一个术语表吗?

windows - 如果同时启用了鼠标和触摸板,如何检测输入设备

java - 如何获取liferay 6中portlet的部署和加载过程的时间戳?

ajax - Liferay中使用ajax从数据库中提取数据