Liferay 6.2 改造系列之十三:修改用户编辑页面表单内容

为简化用户编辑,删除无用内容:

在/portal-master/portal-impl/src/portal.properties文件中,有如下配置:

#
# 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

#
# 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

修改为:

#
# 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
users.form.update.miscellaneous=display-settings

#
# 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
users.form.update.miscellaneous=display-settings
时间: 2024-12-27 10:27:09

Liferay 6.2 改造系列之十三:修改用户编辑页面表单内容的相关文章

Liferay 6.2 改造系列之五:修改默认站点的页面内容

相关页面可以通过/portal-master/portal-impl/src/portal.properties文件配置进行修改: 登录页: ## ## Default Landing Page ## # # Set the default landing page path for logged in users relative to the # server path. This is the page users are automatically redirected to after

Liferay 6.2 改造系列之六:修改系统初始化信息

将初始化过程修改为:中文语言 在/portal-master/portal-impl/src/system.properties文件中,有如下配置: # # Set the default locale used by Liferay. This locale is no longer set at # the VM level. See LEP-2584. # user.country=US user.language=en # # Set the default time zone used

Liferay 6.2 改造系列之十四:修改组织的表单内容

在/portal-master/portal-impl/src/portal.properties文件中,有如下配置: # # Input a list of sections that will be included as part of the organization # form when adding an organization. # organizations.form.add.main=details,organization-site organizations.form.

Liferay 6.2 改造系列之八:修改默认安装的Portlet项目War包

Liferay默认在Tomcat.Jetty等服务器情况下,自动安装marketplace-portlet-6.2.0.1.war包,实现应用商店的自动部署,一般不需要应用商店,故删除以下包即可: /portal-master/portal-impl/src/com/liferay/portal/deploy/dependencies/plugins1/marketplace-portlet-6.2.0.1.war 如果需要实现自动部署自己开发的其他Portlet包,添加到此处,替代market

Liferay 6.2 改造系列之三:删除Docbar中的添加内容功能

在/portal-master/portal-web/docroot/html/portlet/dockbar/add_panel.jsp文件中 将以下内容: if (hasAddContentAndApplicationsPermission) { tabs1Names = ArrayUtil.append(tabs1Names, "content,applications"); } if (hasLayoutAddPermission) { tabs1Names = ArrayUt

Liferay 6.2 改造系列之二十三:修改Liferay原始主题中"技术支持:Liferay"字样

1.修改主题模板文件,具体位置如下 (1) portal-master\portal-web\docroot\html\themes\_unstyled\templates\portal_normal.vm (2) portal-master\portal-web\docroot\html\themes\_unstyled\templates\portal_normal.vm 将上述两个文件改为相应如下即可: <footer id="footer" role="cont

struts2官方 中文教程 系列十一:使用XML进行表单验证

在本教程中,我们将讨论如何使用Struts 2的XML验证方法来验证表单字段中用户的输入.在前面的教程中,我们讨论了在Action类中使用validate方法验证用户的输入.使用单独的XML验证文件让您可以内置到Struts 2框架的验证器. 贴个本帖的地址,以免被爬:struts2官方 中文教程 系列十一:使用XML进行表单验证  即 http://www.cnblogs.com/linghaoxinpian/p/6938720.html 下载本章节代码 为了使用户能够编辑存储在Person对

JavaWeb学习总结(十三)——使用Session防止表单重复提交

在平时开发中,如果网速比较慢的情况下,用户提交表单后,发现服务器半天都没有响应,那么用户可能会以为是自己没有提交表单,就会再点击提交按钮重复提交表单,我们在开发中必须防止表单重复提交. 一.表单重复提交的常见应用场景 有如下的form.jsp页面 1 <%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> 2 <!DOCTYPE HTML>

JavaWeb---总结(十三)使用Session防止表单重复提交

在平时开发中,如果网速比较慢的情况下,用户提交表单后,发现服务器半天都没有响应,那么用户可能会以为是自己没有提交表单,就会再点击提交按钮重复提交表单,我们在开发中必须防止表单重复提交. 一.表单重复提交的常见应用场景 有如下的form.jsp页面 <%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> <!DOCTYPE HTML> <