Fórum

Documents and Media Portlet - Disable Action Buttons?

Jay C, modificado 11 Anos atrás.

Documents and Media Portlet - Disable Action Buttons?

New Member Postagens: 10 Data de Entrada: 04/12/12 Postagens Recentes
Is their anyway to make a document and media portlet behave like a Guest User... meaning the logged in users wouldn't see the action buttons (add, sort, modify).

I have tried updating permissions with no luck as the action buttons always appear.

Any help is appreciated.
thumbnail
Jitendra Rajput, modificado 11 Anos atrás.

RE: Documents and Media Portlet - Disable Action Buttons?

Liferay Master Postagens: 875 Data de Entrada: 07/01/11 Postagens Recentes
Modify html/portlet/document_library/toolbar.jsp using hook. You just need to place permission check on above this line

<liferay-ui:icon-menu align="left" cssclass="actions-button aui-helper-hidden" direction="down" icon="" id="actionsButtonContainer" message="actions" showexpanded="<%= false %>" showwhensingleicon="<%= true %>">
</liferay-ui:icon-menu>
Jay C, modificado 11 Anos atrás.

RE: Documents and Media Portlet - Disable Action Buttons?

New Member Postagens: 10 Data de Entrada: 04/12/12 Postagens Recentes
Can you provide an example? Not sure what you mean by 'permission check'

Thanks,
thumbnail
Sharana Basavaraj Ballari, modificado 11 Anos atrás.

RE: Documents and Media Portlet - Disable Action Buttons?

Regular Member Postagens: 139 Data de Entrada: 10/09/07 Postagens Recentes
Hi there,

Create a new role and define only view permission on document library. Assign the created role to the user. Done.

HTH,
Sharana
Jay C, modificado 11 Anos atrás.

RE: Documents and Media Portlet - Disable Action Buttons?

New Member Postagens: 10 Data de Entrada: 04/12/12 Postagens Recentes
Just tried this and still see the buttons.

Does it work for you? Have you tried? Wondering if this may be a bug.....
thumbnail
Sharana Basavaraj Ballari, modificado 11 Anos atrás.

RE: Documents and Media Portlet - Disable Action Buttons?

Regular Member Postagens: 139 Data de Entrada: 10/09/07 Postagens Recentes
Hi Jay,

I have tried it and it works fine for me.

When you go to the control panel--> Roles--> yourCustomRole-->actions-->Define Permissions-->

Then check for Document Library in the dropdown. You will find it nearly three times i guess. Click on them and assign view permissions

Cheers,
Sharana
Jay C, modificado 11 Anos atrás.

RE: Documents and Media Portlet - Disable Action Buttons?

New Member Postagens: 10 Data de Entrada: 04/12/12 Postagens Recentes
Sharana Basavaraj Ballari:
Hi Jay,

I have tried it and it works fine for me.

When you go to the control panel--> Roles--> yourCustomRole-->actions-->Define Permissions-->

Then check for Document Library in the dropdown. You will find it nearly three times i guess. Click on them and assign view permissions

Cheers,
Sharana


Assigned view only permissions but the user still sees the add, sort by and manage. The 'Actions" button is removed though.

Can the other three be removed too?
Mohan S, modificado 9 Anos atrás.

RE: Documents and Media Portlet - Disable Action Buttons?

New Member Postagens: 14 Data de Entrada: 06/08/14 Postagens Recentes
Hi,

How i can remove/ Disable - the " Manage-Button " alone in Document Library module in Liferay 6.1

Kindly help me with your Inputs .
If some one suggest me with Steps that will be more helpful .Thank you .
Vanessa Busch, modificado 9 Anos atrás.

RE: Documents and Media Portlet - Disable Action Buttons?

New Member Postagens: 4 Data de Entrada: 11/07/11 Postagens Recentes
Hi Tom,

Have you found a way to remove/Disable the manage-button?


TOM S:
Hi,

How i can remove/ Disable - the " Manage-Button " alone in Document Library module in Liferay 6.1

Kindly help me with your Inputs .
If some one suggest me with Steps that will be more helpful .Thank you .
TOM S, modificado 8 Anos atrás.

RE: Documents and Media Portlet - Disable Action Buttons?

New Member Postagens: 14 Data de Entrada: 06/08/14 Postagens Recentes
Vanessa Busch:
Hi Tom,

Have you found a way to remove/Disable the manage-button?


TOM S:
Hi,
https://www.liferay.com/community/forums/-/message_boards/message/41119505

please check this