Configuring Liferay 6 Dockbar in Speed ​​/ JS / CSS

I am not a fan of the entire "portal dock" for regular users (we use Liferay for external hosting). And I don’t want to show people things like “Go To,” etc. (I hid private / public pages using things like the power user must have to show, etc.).

But I want to remove such things as unnecessary icons in the Dockbar for non-admin users (see image) - delete the "Management" section - delete editing controls (should not even show admin !?)

I think that these things are confusing for logging in to the "main" users. Liferay Dockbar example

+5
source share
2 answers

dockbar is a regular portlet, you can change it as such. It just has a different display, because some css fantasies are included in the standard theme, but otherwise there is nothing else that configures the dockbar portlet than for any other portlet.

So, you just need to create a hook and override the JSP (s) you want -> do.

+6
source

Save the following entry in the portal_normal.vm file of your theme

#if($is_signed_in)
#if($permissionChecker.isCompanyAdmin($company_id))
#dockbar()
#end

With this code, the Dokbar will be visible only to the administrator.

+5
source

All Articles