How to return multiple shapes from Driver .Display()?

Topics: Customizing Orchard, General, Writing modules
Apr 20, 2012 at 7:41 PM

I have a part that emits two shapes, each going to different local zones. Right now, as a workaround to accomplish this I created two Driver classes for this ContentPart. The 2nd driver class only implements .Display(), and I use placement.info to push the shapes into the correct zones. Works perfectly and i'm fine going into production with things as they are. 

Out of curiosity I want to know how to accomplish the same thing by returning multiple shapes from the same .Display() method. I think I saw this discussed somewhere but I can't remember it and can't find anything with a search.