<!– Actions Menu for a document in the Browse screen –>
<action-group id="document_browse_menu">
<action idref="preview_doc" />
<action idref="update_doc" />
<action idref="cancelcheckout_doc" />
<action idref="approve_doc" />
<action idref="reject_doc" />
<action idref="cut_node" hide="true"/>
<action idref="copy_node" hide="true"/>
</action-group>
Dans la deuxième, il s'agit de placer des evaluator "maison" dans la définition des actions afin de ne plus les afficher dans certains cas.Bonjour,
Dans la deuxième, il s'agit de placer des evaluator "maison" dans la définition des actions afin de ne plus les afficher dans certains cas.
Christophe
<!– Edit document action to open using normal HTTP access or inline Edit if set –>
<action id="edit_doc_http">
<permissions>
<permission allow="true">Write</permission>
</permissions>
<!–evaluator>org.alfresco.web.action.evaluator.EditDocHttpEvaluator</evaluator–>
<evaluator>org.alfresco.community.web.action.evaluator.IsAdminEvaluator</evaluator>
<label-id>edit</label-id>
<image>/images/icons/edit_icon.gif</image>
<action-listener>#{CheckinCheckoutBean.editFile}</action-listener>
<params>
<param name="id">#{actionContext.id}</param>
</params>
<!– can also specify style, class etc. but this is better done in 'actions' element –>
</action>
<!– Cut a document or space to the clipboard, from browse or doc details screens –>
<action id="cut_node">
<permissions>
<permission allow="true">Delete</permission>
</permissions>
<label-id>cut</label-id>
<image>/images/icons/cut.gif</image>
<!–evaluator>org.alfresco.web.action.evaluator.CutNodeEvaluator</evaluator–>
<evaluator>org.alfresco.community.web.action.evaluator.IsAdminEvaluator</evaluator>
<action-listener>#{ClipboardBean.cutNode}</action-listener>
<params>
<param name="ref">#{actionContext.nodeRef}</param>
<!–<param name="protocol">#{actionContext.nodeRef.storeRef.protocol}</param>–>
<!–<param name="parent">#{NavigationBean.currentNodeId}</param>–>
</params>
</action>
<!– Copy a document or space to the clipboard, from browse or doc details screens –>
<action id="copy_node">
<label-id>copy</label-id>
<image>/images/icons/copy.gif</image>
<evaluator>org.alfresco.community.web.action.evaluator.IsAdminEvaluator</evaluator>
<action-listener>#{ClipboardBean.copyNode}</action-listener>
<params>
<param name="ref">#{actionContext.nodeRef}</param>
<!–<param name="parent">#{NavigationBean.currentNodeId}</param>–>
</params>
</action>
<!– Paste All clipboard items into a space –>
<action id="paste_all">
<permissions>
<permission allow="true">Write</permission>
</permissions>
<label-id>paste_all</label-id>
<image>/images/icons/paste.gif</image>
<evaluator>org.alfresco.community.web.action.evaluator.IsAdminEvaluator</evaluator>
<action-listener>#{ClipboardBean.pasteAll}</action-listener>
</action>
replace="true"
Content from pre 2016 and from language groups that have been closed.
Content is read-only.
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.