Versionable for Custom document type

I want to allow version on my custom document types after modifying fields. I've added the following contribution but there's no change i'm still facing the same problem. I've attached my current edit tab and my contribution.

0 votes

2 answers

1954 views

ANSWER



<?xml version="1.0"?> 

<component name="org.nuxeo.project.samplle.versioningrules"> 

  <!-- Default versioning rules --> 
  <extension point="versioningRules" target="org.nuxeo.ecm.core.versioning.VersioningService">
    <versioningRule typeName="yourCustomType">
      <initialState major="0" minor="0"/>
      <options lifeCycleState="*">
        <none default="true"/>
        <minor/>
        <major/>
      </options>
    </versioningRule>
    .........


  </extension>
</component> 

It worked after modifying my contribution to the above contribution

1 votes



0 votes