This project is read-only.

List of records contained in a part

Topics: Customizing Orchard, Writing modules
Jun 4, 2012 at 6:32 AM
Edited Jun 4, 2012 at 7:40 AM

I have a part that has 1 or more images 'linked' to it, and every image can have an additional body and target link.

Now, I store this in a list of records inside the part but this seems to give potential problems with localization and drafting.

Does anyone know what is the best / correct way to do this? Or what do I need to do to support 'drafting' for my child records?

edit: About localization : I worked around it by detecting the creation of a new localized version by checking the existence of the 'SelectedCulture' form parameter : any other (better) way do detect this?

edit2: So the next problem is : how do I make this part 'draftable'? As in when the content isn't published, it would most likely have to store the records double until publish. I 'just' tried to make my part extend from ContentPartVersionRecord but that just broke saving changes :/

Jun 4, 2012 at 1:42 PM

If these child records are content items, they would be draftable.