cancel
Showing results for 
Search instead for 
Did you mean: 

document library actions hide start workflow

nua76
Champ on-the-rise
Champ on-the-rise
On alfresco share 4.0
on the document livrary action how to hide the worklow menu for
consumer and contributor roles
on a simple way if possible  Smiley Very Happy
4 REPLIES 4

rhakaro
Champ in-the-making
Champ in-the-making
Hi NUA76,

The simplest way to do that is to extend this file:

/web-extension/site-webscript/org/alfresc/components/documentlibrary/documentlist.get.config.xml

There you will find all the options available in document library actions menus.

You cannot define the roles, but you can play with permissions.

Let me know if you need extra info.

Regards.

nua76
Champ on-the-rise
Champ on-the-rise
Hi rhakaro
thanks for your reply , i may need more help

when you said :
The simplest way to do that is to extend this file:
/web-extension/site-webscript/org/alfresc/components/documentlibrary/documentlist.get.config.xml
i can not find this path, I have a directory call web-extension but empty  " C:\Alfresco\tomcat\shared\classes\alfresco\web-extension"
do i have to create  all sub-directory  and add a file call documentlist.get.config.xml


There you will find all the options available in document library actions menus.
can you tell me in witch section especially

thanks

rhakaro
Champ in-the-making
Champ in-the-making
Hi NUA76,

i can not find this path, I have a directory call web-extension but empty " C:\Alfresco\tomcat\shared\classes\alfresco\web-extension"
do i have to create all sub-directory and add a file call documentlist.get.config.xml

The web-extension folder is used to extend the Alfresco Share functionality. To extend a file, you have to copy all the folder tree under /tomcat/webapps/share/WEB-INF/classes/alfresco. In this case, it would be:

site-webscript/org/alfresc/components/documentlibrary/documentlist.get.config.xml

can you tell me in witch section especially

Yes of course. The section is:

<actionSet id="document">
      <action type="action-link" id="onActionEditOnline" permission="edit,online-edit" label="actions.document.edit-online" />
         <action type="simple-link" id="onActionDownload" href="{downloadUrl}" label="actions.document.download" />
         <action type="simple-link" id="onActionView" href="{viewUrl}" label="actions.document.view" />
         <action type="action-link" id="onActionDetails" permission="edit" label="actions.document.edit-metadata" />
         <action type="action-link" id="onActionSimpleApprove" permission="simple-approve" label="actions.document.simple-approve" />
         <action type="action-link" id="onActionSimpleReject" permission="simple-reject" label="actions.document.simple-reject" />
         <action type="action-link" id="onActionLocate" permission="~filter-path" label="actions.document.locate" />

oliviera
Champ in-the-making
Champ in-the-making
The simplest way to do that is to extend this file:
/web-extension/site-webscript/org/alfresc/components/documentlibrary/documentlist.get.config.xml.

In Alfresco 4.0, this file and defintions have moved to /share-documentlibrary-config.xml. Definitions are now groupe in view type.
Get a look atthe lines below 323:
   <!– Document Library Actions config section –>
   <config evaluator="string-compare" condition="DocLibActions">

To extend the properties, you just have to edit share-config-custom.xml that you certainly have in your shared/ directory.

Source: http://blogs.alfresco.com/wp/mikeh/2011/09/26/share-document-library-extensions-in-v4-0/