RE: How to hide side menu on login and when refreshing the page.

Jamie Sammons, modified 3 Years ago. New Member Post: 1 Join Date: 4/14/22 Recent Posts

​​​​​​​Hello,

I want to disable auto popup menu when logging in with admins credentials and also disable it when refreshing the page.

I am using custom theme, i tried to search <@liferay.control_menu/> in portal_normal.ftl but not found.

I am attaching the image below.

thumbnail
Olaf Kock, modified 3 Years ago. Liferay Legend Posts: 6441 Join Date: 9/23/08 Recent Posts

As you mention "side menu", you're likely referring to the Product Menu. ControlMenu is the one on top. Here's a reference.

To hide it, simply don't provide the permissions.

As you state that you want to hide it with admin permissions: You'd need to come up with an alternative solution to reach the admin controls - if that's worth it to you, you're looking at a lot of work.

Follow best practices and just don't log in with admin permissions if you don't need them.