cancel
Showing results for 
Search instead for 
Did you mean: 

Override Template lifecycle

Nuxeo_User
Confirmed Champ
Confirmed Champ

Hi people :) I need to override the lifecycle of the Template document.I read in Nuxeo documentation and it doesn't include Template in by default documents. Is there a way i can do this?

2 REPLIES 2

Victor_Sánchez
Confirmed Champ
Confirmed Champ

Hi,

in nuxeo-template-rendering addon you can find the document types definition for Templates:

<doctype name="TemplateSource" extends="Document">
...
<doctype name="TemplateBasedFile" extends="File">
...

The current lifecycle contribution for the document types is:

<extension target="org.nuxeo.ecm.core.lifecycle.LifeCycleService"  
   point="types">  
   <types>    
      <type name="TemplateSource">default</type>   
      <type name="TemplateBasedFile">default</type>  
   </types>
</extension>

You could change the lifecycle with a new override contribution for them.

Hope it helps.

Regards, VS!

thanks man

Getting started

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.