cancel
Showing results for 
Search instead for 
Did you mean: 

Hide some actions in document details view

mo839
Champ in-the-making
Champ in-the-making
Hi all,

I'd like to know how can I modify the action's list in document details view.

I'd like to hide some action like "manage aspect".

Can someone help me?
4 REPLIES 4

mo839
Champ in-the-making
Champ in-the-making
Someone????

filmchris
Champ in-the-making
Champ in-the-making
I needed to do the same thing, so I made the Manage Aspects option (along with a few others) visible to Admin users only. This was the quickest and easiest solution to hide the option from regular users – hopefully it'll work for you, too.

Copy document-actions.get.config.xml
from:
{tomcat}/webapps/share/WEB-INF/classes/alfresco/site-webscripts/org/alfresco/components/document-details/
to:
{tomcat}/shared/classes/alfresco/web-extension/site-webscripts/org/alfresco/components/document-details/

Then, simply add permission="admin" to the items you want to hide from regular users.


<action type="action-link" id="onActionManageAspects" permission="admin" label="actions.document.manage-aspects" />

glaenen
Champ in-the-making
Champ in-the-making
Is the same possible for explorer?

Thanks,

Glenn

mitpatoliya
Star Collaborator
Star Collaborator
Best way to hide action is using action evaluator.
http://docs.alfresco.com/4.0/concepts/doclib-override-extension-examples.html