cancel
Showing results for 
Search instead for 
Did you mean: 

Override filter in send email action

pibou_Bouvret
Elite Collaborator
Elite Collaborator

I m trying to override the send email action so that it appears on folderish documents.

I thought this would do the trick, mergeing the folder and not_folder filters

<require>org.nuxeo.ecm.platform.actions</require>
<extension target="org.nuxeo.ecm.platform.actions.ActionService" point="actions">
  <action  icon="/icons/mail.gif" id="sendEmail" label="action.email.document" link="send_email" order="17" >
  <category>DOCUMENT_UPPER_ACTION</category> 
  <filter-id>folder</filter-id> 
</action>

but it does not !

1 REPLY 1

pibou_Bouvret
Elite Collaborator
Elite Collaborator

This does not work either :

<action id="sendEmail"  enabled="false"  />

<action  icon="/icons/mail.gif" id="sendEmailAnyDoc" label="action.email.document" link="send_email" order="17" >
  <category>DOCUMENT_UPPER_ACTION</category> 
<filter id="sendEmailAnyDocFilter">
  <rule grant="true">
    <permission>Read</permission>
  </rule>
</filter> 
</action>

Another email link appears on folders ( a second link appears on files : the original action is not disabled), and there s a problem with the form that leads to :

could not acquire lock on @Synchronized component: principalListManager 

But the override of the POPUP_sendEmail action is working fine

<action id="POPUP_sendEmail2" link="javascript:doSendEmail"  label="action.email.document" icon="/icons/mail.gif"  >
  <category>POPUP</category> 
<filter id="sendEmailAnyDocFilter2">
  <rule grant="true">
    <facet>Folderish</facet>
  </rule>
</filter> 
</action>
Getting started

Attention: Blogs & Forums are in READ-ONLY mode from Oct 9-19 as we transition to our new platform. Learn more.

Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.