cancel
Showing results for 
Search instead for 
Did you mean: 

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

milonette_
Star Collaborator
Star Collaborator

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

1 ACCEPTED ANSWER

milonette_
Star Collaborator
Star Collaborator

Dear me,

All the action in document contextual tools are in DOCUMENT_UPPER_ACTION

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

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).

View answer in original post

1 REPLY 1

milonette_
Star Collaborator
Star Collaborator

Dear me,

All the action in document contextual tools are in DOCUMENT_UPPER_ACTION

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

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).