Having parts require other parts

Topics: Core, General
Mar 13, 2014 at 11:22 AM
If I have two parts, part 1 and part 2, I want to be able to attach part 1 when part 2 is attached. Is this possible?

I checked around and couldn't see any event I could hook into in the source. I guess it would get complicated with migrations... And doesn't really fit Orchards modular design?
Mar 13, 2014 at 7:54 PM
Usually when I see this requirement I actually just need "another" driver on Part1 or Part2. You can also do a generic driver which would test for both parts to be attached to the current content item.

And you can always add custom settings to either Part1 or Part2 to be used only from the specific driver.
Mar 14, 2014 at 6:16 PM
Ah, interesting. Thanks for the response. I will have a look into that for sure