留言板
Start Liferay 7 with slide out menu always closed
William Gosse,修改在6 年前。
Start Liferay 7 with slide out menu always closed
Liferay Master 帖子: 533 加入日期: 10-7-4 最近的帖子
Is there away to have the slide menus in liferay 7 closed when the user first logs in? It seems that the menus will be open if the user leave the session with them in that state.
David H Nebinger,修改在6 年前。
RE: Start Liferay 7 with slide out menu always closed
Liferay Legend 帖子: 14919 加入日期: 06-9-2 最近的帖子
I believe they are controlled by browser-side cookies...
That said, it's not a big deal to close them again. Personally I like that they are always open because I'm usually head-first into the control panel after login.
That said, it's not a big deal to close them again. Personally I like that they are always open because I'm usually head-first into the control panel after login.
William Gosse,修改在6 年前。
RE: Start Liferay 7 with slide out menu always closed
Liferay Master 帖子: 533 加入日期: 10-7-4 最近的帖子
Thanks David. I was hoping there was a property I could set. Have it in the open position is not always good for us in certain situation and themes.
William Gosse,修改在6 年前。
RE: Start Liferay 7 with slide out menu always closed
Liferay Master 帖子: 533 加入日期: 10-7-4 最近的帖子
This is definitely not being controlled by a cookie.
William Gosse,修改在6 年前。
RE: Start Liferay 7 with slide out menu always closed (答复)
Liferay Master 帖子: 533 加入日期: 10-7-4 最近的帖子
I kind of figure out how to control this in the theme using a combination of Liferay functions, Freemarker and some CSS:
<#if permissionChecker.isOmniadmin()> <@liferay.control_menu /> <#assign wrapperStyle = "" /> <#else> <#assign wrapperStyle = "style='margin-top: 5px !important; padding-left: 0px !important'" /> <style> #ControlMenu {display: none !important;} #_com_liferay_product_navigation_product_menu_web_portlet_ProductMenuPortlet_sidenavSliderId {display: none !important;} </style> <!--#if-->