Foros de discusión

Documents and Media Portlet - Disable Action Buttons?

Jay C, modificado hace 11 años.

Documents and Media Portlet - Disable Action Buttons?

New Member Mensajes: 10 Fecha de incorporación: 4/12/12 Mensajes recientes
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 hace 11 años.

RE: Documents and Media Portlet - Disable Action Buttons?

Liferay Master Mensajes: 875 Fecha de incorporación: 7/01/11 Mensajes recientes
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 hace 11 años.

RE: Documents and Media Portlet - Disable Action Buttons?

New Member Mensajes: 10 Fecha de incorporación: 4/12/12 Mensajes recientes
Can you provide an example? Not sure what you mean by 'permission check'

Thanks,
thumbnail
Sharana Basavaraj Ballari, modificado hace 11 años.

RE: Documents and Media Portlet - Disable Action Buttons?

Regular Member Mensajes: 139 Fecha de incorporación: 10/09/07 Mensajes recientes
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 hace 11 años.

RE: Documents and Media Portlet - Disable Action Buttons?

New Member Mensajes: 10 Fecha de incorporación: 4/12/12 Mensajes recientes
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 hace 11 años.

RE: Documents and Media Portlet - Disable Action Buttons?

Regular Member Mensajes: 139 Fecha de incorporación: 10/09/07 Mensajes recientes
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 hace 11 años.

RE: Documents and Media Portlet - Disable Action Buttons?

New Member Mensajes: 10 Fecha de incorporación: 4/12/12 Mensajes recientes
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 hace 9 años.

RE: Documents and Media Portlet - Disable Action Buttons?

New Member Mensajes: 14 Fecha de incorporación: 6/08/14 Mensajes recientes
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 hace 9 años.

RE: Documents and Media Portlet - Disable Action Buttons?

New Member Mensajes: 4 Fecha de incorporación: 11/07/11 Mensajes recientes
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 hace 8 años.

RE: Documents and Media Portlet - Disable Action Buttons?

New Member Mensajes: 14 Fecha de incorporación: 6/08/14 Mensajes recientes
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