留言板
Disable dock bar
I need disable dock bar in liferay 6.1.1.
The docbar should be enabled for Admins but should be disabled or be hidden for a site member or a normal user.
What is the correct way to achieve this?
The docbar should be enabled for Admins but should be disabled or be hidden for a site member or a normal user.
What is the correct way to achieve this?
Hello Rishi,
You can check the condition in the portal_normal.vm on #dockbar().
For checking the admin user you can use permissionChecker.isOmniadmin() as your condition.
Thanks
You can check the condition in the portal_normal.vm on #dockbar().
For checking the admin user you can use permissionChecker.isOmniadmin() as your condition.
Thanks
I think this is the easiest of the alternatives and is not the right way.
With Dock bar there are certain styling and javascript added to the page. Commenting or putting condition on theme will alter that behavior and the required libs will not be loaded.
Is there a way doing this by any configuration or permission model?
With Dock bar there are certain styling and javascript added to the page. Commenting or putting condition on theme will alter that behavior and the required libs will not be loaded.
Is there a way doing this by any configuration or permission model?