[solved]How to remove certain actions in Alfresco Explorer?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-05-2010 10:09 AM
Hi 
I'm trying to simplify the Alfresco Explorer UI. I created a web-client-config-custom.xml file to override some of the default configuration rules. I was able to remove actions in the browser view and the Details view for folders (spaces) and documents but some of them are still visible and I don't know how to remove them.
These actions are :
- the Copy action in the Browse screen and the Show Details screen (for spaces and documents)
- the Preview in template action in the Browse screen and the Show Details screen (for spaces and documents)
- the Start Advanced Workflow action in the Browse screen and the Show Details screen (for documents)
Here is the part of my web-client-config-custom.xml file which contains the customization of the actions:
I didn't see any action configuration regarding the workflow in the web-client-config-actions.xml file so I don't know where to disable these actions
Thanks for you help
ps: I'm using Alfresco Community 3.3G

I'm trying to simplify the Alfresco Explorer UI. I created a web-client-config-custom.xml file to override some of the default configuration rules. I was able to remove actions in the browser view and the Details view for folders (spaces) and documents but some of them are still visible and I don't know how to remove them.
These actions are :
- the Copy action in the Browse screen and the Show Details screen (for spaces and documents)
- the Preview in template action in the Browse screen and the Show Details screen (for spaces and documents)
- the Start Advanced Workflow action in the Browse screen and the Show Details screen (for documents)
Here is the part of my web-client-config-custom.xml file which contains the customization of the actions:
<!– Actions for a space in the Browse screen –> <action-group id="space_browse"> <show-link>true</show-link> <style-class>inlineAction</style-class> <action idref="details_space" /> </action-group> <!– Actions Menu for a space in the Browse screen –> <action-group id="space_browse_menu"> </action-group> <!– Actions for a document in the Browse screen –> <action-group id="document_browse"> <show-link>true</show-link> <style-class>inlineAction</style-class> <action idref="download_doc" /> <action idref="details_doc" /> </action-group> <!– Actions Menu for a document in the Browse screen –> <action-group id="document_browse_menu"> </action-group> <!– Actions Menu for More Actions in Browse screen –> <action-group id="browse_actions_menu"> <action idref="details_space" /> </action-group> <!– Actions Menu for Document Details screen –> <action-group id="doc_details_actions"> <action idref="download_doc" /> <action idref="create_shortcut" /> </action-group> <!– Actions Menu for Space Details screen –> <action-group id="space_details_actions"> <action idref="create_shortcut" /> </action-group> <!– Actions Menu for File Link Details screen –> <action-group id="filelink_details_actions"> <action idref="download_doc" /> </action-group> <!– Actions Menu for Folder Link Details screen –> <action-group id="spacelink_details_actions"> </action-group>
I didn't see any action configuration regarding the workflow in the web-client-config-actions.xml file so I don't know where to disable these actions

Thanks for you help

ps: I'm using Alfresco Community 3.3G
Labels:
- Labels:
-
Archive
3 REPLIES 3

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-06-2010 03:47 AM
my recomendation is to create 2 types of view for instance user and pro.
and to change your actions( and other in this way), so users can change their type of view from one to other.
why this approach is better?
because you will find that you have in dialogs some complicated parts, that users if do not see workflow they do not have to see workflow panel…. you will find a lot more if you look at it better.
so how to do this?
<action id="upload_new_version">
<permissions>
<permission allow="true">Write</permission>
</permissions>
<evaluator>org.alfresco.web.action.evaluator.UploadNewVersionEvaluator</evaluator> THIS CLASS DECIDES IF ACTIONS IS TO BE RENDERED.
<label-id>upload_new_version</label-id>
<image>/images/icons/upload_new_version.gif</image>
<action-listener>#{UploadNewVersionDialog.setupContentAction}</action-listener>
<action>dialog:uploadVersion</action>
<params>
<param name="id">#{actionContext.id}</param>
</params>
</action>
ps:you have file "web-client-config-workflow-actions.xml" too check it out.
and to change your actions( and other in this way), so users can change their type of view from one to other.
why this approach is better?
because you will find that you have in dialogs some complicated parts, that users if do not see workflow they do not have to see workflow panel…. you will find a lot more if you look at it better.
so how to do this?
<action id="upload_new_version">
<permissions>
<permission allow="true">Write</permission>
</permissions>
<evaluator>org.alfresco.web.action.evaluator.UploadNewVersionEvaluator</evaluator> THIS CLASS DECIDES IF ACTIONS IS TO BE RENDERED.
<label-id>upload_new_version</label-id>
<image>/images/icons/upload_new_version.gif</image>
<action-listener>#{UploadNewVersionDialog.setupContentAction}</action-listener>
<action>dialog:uploadVersion</action>
<params>
<param name="id">#{actionContext.id}</param>
</params>
</action>
ps:you have file "web-client-config-workflow-actions.xml" too check it out.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-09-2010 12:16 PM
Thank you for your help
. Do you have a sample for the evaluator class?


Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-09-2010 01:50 PM
public class CancelCheckoutDocEvaluator implements ActionEvaluator{ public boolean evaluate(Node node) { return (node.hasPermission(PermissionService.CANCEL_CHECK_OUT) && node.hasAspect(ContentModel.ASPECT_WORKING_COPY)); }}
thsi is a copy paste from hire http://wiki.alfresco.com/wiki/Externalised_Client_Actions. hope it helps.
