Fórum

Customizations to DockBar?

thumbnail
Jakub B, modificado 12 Anos atrás.

Customizations to DockBar?

Junior Member Postagens: 82 Data de Entrada: 12/08/09 Postagens Recentes
I'm not a fan of the whole 'portal dock' for normal users (we use Liferay for external facing hosting). And I don't want to show people things like 'Go To' etc (I've hidden the private / public pages using things like must be power user to show, etc).

But I want to eliminate things like un-needed icons on the Dockbar for non admin users (see image)
- remove 'Manage' section
- remove toggle edit controls (shouldn't even be shown to non admin!?)

I think these things cause confusion for logged in 'basic' users.
thumbnail
Maarten van Heiningen, modificado 12 Anos atrás.

RE: Customizations to DockBar?

Regular Member Postagens: 174 Data de Entrada: 05/02/09 Postagens Recentes
Hi,

You could set the dockbar to be loaded only for omni admin and community admins. There is a simple code like this inside your portal_normal.vm

#if ( $is_signed_in && ( $permissionChecker.isOmniadmin() || $permissionChecker.isCommunityAdmin( $portletGroupId )  ) )
        #parse ("$full_templates_path/dock.vm")
#end

This will hide the complete dockbar for none admins.
thumbnail
Jakub B, modificado 12 Anos atrás.

RE: Customizations to DockBar?

Junior Member Postagens: 82 Data de Entrada: 12/08/09 Postagens Recentes
How would users change their password / email then? I've thought about removing it simply, but I can't take away the right to update their account, and there isn't a portlet 'out of the box' that I could utilize.
thumbnail
Ravi Kumar Gupta, modificado 12 Anos atrás.

RE: Customizations to DockBar?

Liferay Legend Postagens: 1302 Data de Entrada: 24/06/09 Postagens Recentes
Then I would suggest to do permission checking in dock.vm for LR 5.x and for 6.0 change in the jsp of dockbar
thumbnail
Ravi Kumar Gupta, modificado 12 Anos atrás.

RE: Customizations to DockBar?

Liferay Legend Postagens: 1302 Data de Entrada: 24/06/09 Postagens Recentes
keep the option which you want.. and hide others.. emoticon
thumbnail
Jakub B, modificado 12 Anos atrás.

RE: Customizations to DockBar?

Junior Member Postagens: 82 Data de Entrada: 12/08/09 Postagens Recentes
Ravi Kumar Gupta:
keep the option which you want.. and hide others.. emoticon


right... I would first need to know where the options are, and how to change them...
thumbnail
Ravi Kumar Gupta, modificado 12 Anos atrás.

RE: Customizations to DockBar?

Liferay Legend Postagens: 1302 Data de Entrada: 24/06/09 Postagens Recentes
Jsps are in this directory tomcat-6.0.29\webapps\ROOT\html\portlet\dockbar
thumbnail
Jakub B, modificado 12 Anos atrás.

RE: Customizations to DockBar?

Junior Member Postagens: 82 Data de Entrada: 12/08/09 Postagens Recentes
Ravi Kumar Gupta:
Jsps are in this directory tomcat-6.0.29\webapps\ROOT\html\portlet\dockbar


Hmm trouble is tho, I would like to customize this for one portal instance, think I should create an 'if' / 'switch' condition based on portal instance id?
I'm curious if anyone has run into this. Thanks.
thumbnail
Ravi Kumar Gupta, modificado 12 Anos atrás.

RE: Customizations to DockBar?

Liferay Legend Postagens: 1302 Data de Entrada: 24/06/09 Postagens Recentes
Each instance can have its own virtual host.. based on that, with some hard coding you can fit an if or switch in jsp and get the job done.. emoticon
thumbnail
Jakub B, modificado 12 Anos atrás.

RE: Customizations to DockBar?

Junior Member Postagens: 82 Data de Entrada: 12/08/09 Postagens Recentes
My dockbar is for Liferay 6 so 5 does not apply. Also where is the dock jsp? its not a vm, its not part of the template 'structure'