Extension point : hide LOCK and UNLOCK & add selection to clipboard button on some Documents

Hello,

I want to remove LOCK and UNLOCK and Add selection to clipboard on some Documents custom.

My filter is successful, because I could hidde other button, nevertheless, with this 3 actions, I couldn't find their action id name in order to apply my filter on it.

Do you know what is the XML code to redefined this 3 actions ? I failed with DOCUMENT_LOCK, DOCUMENT_UNLOCK etc…

thanks

0 votes

1 answers

2477 views

ANSWER



Dear me,

All the action in document contextual tools are in

Go on : http://explorer.nuxeo.org/nuxeo/site/distribution/current/viewExtensionPoint/org.nuxeo.ecm.platform.actions.ActionService–actions

Open XML files and find all DOCUMENT_UPPER_ACTION for the good action id.

Then do :

    <action id="documentLock" >
        <filter-id>filterMe</filter-id>
    </action>
     <action id="documentUnlock" >
      <filter-id>filterMe</filter-id>
    </action>
    <action id="addCurrentDocumentToWorklist">
      <filter-id>filterMe</filter-id>
    </action>

You need ALSO to filter as same the

  1. actions id=“DOCUMENT_LOCK”
  2. action id=“DOCUMENT_UNLOCK”
  3. action id=“CURRENT_SELECTION_ADDTOLIST”

because if not these actions will still be available in the contextual menu (opened by right-clicking on a document in a listing).

1 votes