liferay的默认是当前页面的管理员 可以管理页面上的portlet,所以只有管理员才能看到portlet的最大化和最小化,
如果我们需要允许只要登录了liferay的用户再页面上就能看到最大化最小化图标的话,需要做以下几步:
- 找到目录liferay-portal-6.x/tomcat-xxx/webapps/ROOT/html/portal
- 打开文件render_portlet.jsp
- 找到这行代码
portletDisplay.recycle();
4.在上面的代码后面加上
if (themeDisplay.isSignedIn())
{
showMaxIcon = true;
showMinIcon = true;
}
5.重启就可以了
如果想让不登录的用户也能看到
就直接加上
showMaxIcon = true;
showMinIcon = true;