Override Template lifecycle

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?

0 votes

1 answers

217 views

ANSWER



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!

0 votes



thanks man
01/10/2018