ContentPart versioning (two of the same contentparts

Topics: Troubleshooting, Writing modules
Mar 24, 2011 at 4:56 PM
Edited Mar 24, 2011 at 10:02 PM

I've the need to version a contentpart within a contentitem.
I think versioning is possible on ContentItem level and all underlaying versionable parts, is that true?

Or else would it be possible to include two versions of the same part into one contentItem ?

                cfg => cfg
                    .WithPart("DataPart")   <-- somehow previous version using settings or something
                    .WithPart("DataPart")   <-- somehow latest version using settings or something

Or use 2 ContentItems.

Or perhaps wrapping the two versions inside a new (list) part ?

Mar 24, 2011 at 11:52 PM

Yes, versioning works on all versionable parts.

Mar 25, 2011 at 8:45 AM

Do i need two versions of a contentitem for that?
Or is it possible to add two contentparts of the same type to one contentItem, without a list wrapping them

I did look at the StorageVersionFilter and the Versioning using the NHibernate copy - IClassMetadata GetPropertyValues and SetPropertyValus.
So i believe it'll work with two versions of a contentitem.
But two versions of a contentpart within one contentitem might not work.. welding will go wrong.. i'm gonna try it anyway :)