The nodes themselves are never versionable. Magnolia versions a copy of the node in mgnlVersion workspace instead in order to be able to filter subpages from versioned content. The versioning operation is normally applied only on activation, not on each update. If you want to version on each update, you would need to modify the save handler of your paragraph. If versioning on activation is enough, everything should work out of the box.
HTH, Jan On Feb 7, 2012, at 9:29 AM, Catalin Anghel wrote: > Hi, > > I am new to Magnolia and I have this problem registering a custom node type > as versionable (i hope I got this right) > To explain a little better, my goal is to version my custom nodes in order to > give the possibility to the editor of the page to have a list of versions and > to be able to see the changes. > > My nodetypes.xml looks something like this: > <nodeTypes > xmlns:rep="internal" > xmlns:nt="http://www.jcp.org/jcr/nt/1.0" > xmlns:mix="http://www.jcp.org/jcr/mix/1.0" > xmlns:mgnl="http://www.magnolia.info/jcr/mgnl" > xmlns:jcr="http://www.jcp.org/jcr/1.0"> > > <nodeType name="mgnl:product" isMixin="false" > hasOrderableChildNodes="true" primaryItemName=""> > <supertypes> > <supertype>mgnl:content</supertype> > <supertype>mix:referenceable</supertype> > </supertypes> > </nodeType> > <nodeType name="mgnl:productCar" isMixin="false" > hasOrderableChildNodes="true" primaryItemName=""> > <supertypes> > <supertype>mgnl:product</supertype> > </supertypes> > </nodeType> > ......................................................................................... > > </nodeTypes> > > I have to say that mgnl:content already has mix:referenceable as a supertype > and I expected to see some inheritance... but the node of type mgnl:product > was not versionable in the end. > Is there something else that I must configure or it's just the XML containing > the node types? > > Any help will be highly appreciated. > > Thanks a lot, > Catalin > > > ---------------------------------------------------------------- > For list details, see http://www.magnolia-cms.com/community/mailing-lists.html > Alternatively, use our forums: http://forum.magnolia-cms.com/ > To unsubscribe, E-mail to: <[email protected]> > ---------------------------------------------------------------- ---------------------------------------------------------------- For list details, see http://www.magnolia-cms.com/community/mailing-lists.html Alternatively, use our forums: http://forum.magnolia-cms.com/ To unsubscribe, E-mail to: <[email protected]> ----------------------------------------------------------------
