Fórumok

Disable dock bar

thumbnail
Rishi Dev Gupta, módosítva 11 év-val korábban

Disable dock bar

Expert Bejegyzések: 255 Csatlakozás dátuma: 2008.11.23. Legújabb bejegyzések
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?
thumbnail
Manish Kumar, módosítva 11 év-val korábban

RE: Disable dock bar

Junior Member Bejegyzések: 93 Csatlakozás dátuma: 2012.03.02. Legújabb bejegyzések
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 emoticon
thumbnail
Rishi Dev Gupta, módosítva 11 év-val korábban

RE: Disable dock bar

Expert Bejegyzések: 255 Csatlakozás dátuma: 2008.11.23. Legújabb bejegyzések
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?
thumbnail
David H Nebinger, módosítva 11 év-val korábban

RE: Disable dock bar

Liferay Legend Bejegyzések: 14919 Csatlakozás dátuma: 2006.09.02. Legújabb bejegyzések
Use the permission checker as Manish said.

It is the right way and it will work.