cancel
Showing results for 
Search instead for 
Did you mean: 

Versionable for Custom document type

ITShine_
Star Contributor
Star Contributor

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.

1 ACCEPTED ANSWER

ITShine_
Star Contributor
Star Contributor
<?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

View answer in original post

2 REPLIES 2

ITShine_
Star Contributor
Star Contributor
<?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

Pradeep_Bhat
Star Contributor
Star Contributor