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 = ArrayUtil.append(tabs1Names, "page"); }
修改为:
if (hasAddContentAndApplicationsPermission) { tabs1Names = ArrayUtil.append(tabs1Names, "applications"); } if (hasLayoutAddPermission) { tabs1Names = ArrayUtil.append(tabs1Names, "page"); }
将以下内容删除:
<liferay-ui:section> <liferay-util:include page="/html/portlet/dockbar/add_content.jsp" /> </liferay-ui:section>