Liferay 6.2 改造系列之二:清理不需要的Portlet

一、特殊Portlet:

以下Portlet数据特殊用途的Portlet,去除后会出现运行错误:

1、站点模版

通过com.liferay.portal.events.AddDefaultLayoutSetPrototypesAction类,系统初始化站点模版时,使用到如下Portlet

Intranet Site模版:

首页:

116  活动 (Activities)

3  查询(Search)

82  语言 (Language)

101  Asset Publisher

文档页:

20  文档媒体库 (Documents and Media)

101  Asset Publisher

新闻页:

39  RSS

Community Site模版:

首页:

19  留言板 (Message Boards)

3   查询(Search)

59  问卷调查展示 (Polls Display)

180  用户统计 (User Statistics)

101  Asset Publisher

Wiki页:

36  Wiki

122  Asset Categories Navigation

148  Asset Tags Cloud

清理方法:

删除com.liferay.portal.events.AddDefaultLayoutSetPrototypesAction类,并在liferay-portlet.xml、portlet-custom.xml中去除以上portlet的定义;

2、页面模版

通过com.liferay.portal.events.AddDefaultLayoutPrototypesAction类,系统初始化页面模版时,使用到如下Portlet

Blog页:

33  博客 (Blogs)

148  Asset Tags Cloud

114

Content Display Page页:

141  近期博主 (Recent Bloggers)

122  Asset Categories Navigation

3  查询(Search)

101  Asset Publisher

Wiki页:

36  Wiki

122  Asset Categories Navigation

141  近期博主 (Recent Bloggers)

清理方法:

删除com.liferay.portal.events.AddDefaultLayoutPrototypesAction类,并在liferay-portlet.xml、portlet-custom.xml中去除以上portlet的定义;

3、管理员注册流程

11   Portal目录 (Portal Directory)

4、基本功能+管理功能

2  我的账户(My Account)

9  管理(Admin)

48  IFrame

49  Site Redirector

58  Login

86  Portlet Configuration

88  Layouts Admin

90  Portal

103  Tags Compiler

113  Portlet CSS

118  Nested Portlets

119  Asset

124  Social

125  Users Admin

127  User Groups Admin

128  Roles Admin

129  Password Policies Admin

130  Portal Settings

132  Plugins Admin

133  Portlet Sharing

134  Sites Admin

135  Admin Instances

137  Admin Server

139  Expando

140  My Pages

142  Flags

145  Dockbar

146  Page Templates

149  Site Templates

156  Group Pages

160  Control Panel Menu

165  Site Settings

170  Staging Bar

172  Asset Browser

174  Site Memberships Admin

185  Site Browser

190  Control Panel Home

191  Site Teams Admin

192  Site Template Settings

二、删除其余portlet

在/portal-web/docroot/WEB-INF目录下,分别在liferay-display.xml、liferay-portlet.xml、portlet-custom.xml文件中注释或删除其余Portlet相关定义即可。

即如下Portlet清单:

10 地址簿(Address Book)

15 Journal

16 货币转换器 (Currency Converter)

23 字典 (Dictionary)

25 Polls

26 翻译器 (Translator)

27 单位换算器 (Unit Converter)

28 书签 (Bookmarks)

29 我的站点 (My Sites)

30 网络工具 (Network)

31 媒体库 (Media Gallery)

33 博客 (Blogs)

34 购物 (Shopping)

47 Hello World

50 Hello Velocity

54 Wiki展示 (Wiki Display)

56 Journal Content

61 贷款计算器 (Loan Calculator)

62 Journal Articles

64 最近下载 (Recent Documents)

66 网页代理 (Web Proxy)

67 亚马逊排名 (Amazon Rankings)

70 密码生成器 (Password Generator)

71 导航 (Navigation)

73 路径导航 (Breadcrumb)

77 网页内容搜索 (Journal Content Search)

83 通知 (Alerts)

84 公告 (Announcements)

85 站点地图 (Site Map)

97 便签 (Quick Note)

98 Software Repository

99 Asset Tag Admin

100 邀请 (Invitation)

102 XSL内容 (XSL Content)

107 页面评论 (Page Comments)

108 页面评价 (Page Ratings)

110 文档与媒体展示 (Documents and Media Display)

114 近期博主 (Recent Bloggers)

115 博客聚合 (Blogs Aggregator)

121 请求 (Requests)

131 系统监视器 (Monitoring)

141 Asset Tags Navigation

143 页面标记 (Page Flags)

147 Asset Category Admin

150 工作流任务 (Workflow Tasks)

151 工作流 (Workflow)

152 工作流配置 (Workflow Configuration)

153 我的工作流任务 (My Workflow Tasks)

154 Wiki (Wiki Admin)

157 提交的任务 (Workflow Instances)

158 我提交的任务 (My Workflow Instances)

161 博客 (Blogs)

162 留言板 (Message Boards Admin)

164  Fast Login

166 动态数据映射(DDM) (Dynamic Data Mapping)

167 动态数据列表 (Dynamic Data Lists)

169 动态数据列表显示 (Dynamic Data List Display)

173 Summary

175 相关Assets (Related Assets)

176 License管理器 (License Manager)

178 移动设备类 (Mobile Device Rules)

179 社交活动 (Social Activity)

181 群组统计 (Group Statistics)

182 回收站 (Trash)

184 站点目录 (Sites Directory)

186 好友列表 (Friends Directory)

187 站点成员列表 (Site Members Directory)

188 我的站点列表 (My Sites Directory)

193 访问最多的Assets (Most Viewed Assets)

194 评价最高的Assets (Highest Rated Assets)

时间: 2024-08-03 19:23:07

Liferay 6.2 改造系列之二:清理不需要的Portlet的相关文章

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

Liferay 6.2 改造系列之二十二:如何发布WAR包

1.修改web资源并发布 如果修改了默认主题信息,需执行portal-web中的build-themes任务: 执行portal-web中的deploy任务: 2.修改portal-impl中的java文件并发布 执行portal-impl中的clean.compile.deploy任务: 3.发布所有内容(可参考此系列中第一篇文章) 执行portal中的deploy任务: 4.发布WAR包 WAR包根据服务器中运行的ROOT项目打包而来,因此需要先将修改的内容执行对应的deploy任务发布后,

Liferay 6.2 改造系列之二十四:修改liferay密码的加密方式

为了便于后期与Cas集成过程中使用数据库用户的方便,将liferay密码的加密方式改为SHA. 在/portal-master/portal-impl/src/portal.properties配置文件中,有如下配置: #passwords.encryption.algorithm=BCRYPT/10 #passwords.encryption.algorithm=MD2 #passwords.encryption.algorithm=MD5 #passwords.encryption.algo

Liferay 6.2 改造系列之二十一:修改WebSphare下JSONWS服务不生效的BUG

问题原因是WebSphare下,servletContext.getContextPath()获取到的值为“/”而非空字符串. 在/portal-master/portal-impl/src/com/liferay/portal/spring/context/PortalContextLoaderListener.java文件中有如下代码: if (ServerDetector.isWebSphere() &&_portalServletContextPath.isEmpty()) { _

Liferay 6.2 改造系列之二十:修改默认添加用户权限及用户是否拥有个人站点的配置

1.修改默认添加用户权限为User,而非Powers User: 在/portal-master/portal-impl/src/portal.properties文件中有如下配置: # # Input a list of default role names separated by \n characters that are # associated with newly created users. # admin.default.role.names=Power User\nUser

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 改造系列之十八:修改登录Portlet配置,去除无用链接

在/portal-master/portal-impl/src/portal.properties文件中,有如下配置: # # Input a list of sections that will be included in login form navigation. # login.form.navigation.pre=anonymous,sign-in,facebook,open-id login.form.navigation.post=create-account,forgot-p

Liferay 6.2 改造系列之十二:修改Portal设置页面表单内容

将Portal设置页面中无用的内容删除: 在/portal-master/portal-impl/src/portal.properties文件中,有如下配置: # # Input a list of sections that will be included as part of the company # settings form. # company.settings.form.configuration=general,authentication,users,mail-host-n

Liferay 6.2 改造系列之一:源码编译和服务启动

一.导入源码 源码可以从Liferay的官方网站上下载.http://www.liferay.com/downloads/liferay-portal/available-releases 下载后解压源码,可以使用Eclipse的File-->Import-->General-->Existing Projects in to Workspace.将解压的源码导入到Eclipse中. 导入源码后,如果是6.2的源码,可能会出现如下的错误:Project 'portal-trunk' is