Adding a Zone inside a Part (has a viewmodel)

Topics: Customizing Orchard, Writing modules, Writing themes
Oct 11, 2013 at 10:32 AM

Here's the full scenario:
I have an EventItem content item which has an EventItem part containing all the custom fields (intro text, agenda, etc). I have another part attached to EventItem called tracks. The issue now is I want to add a Zone inside tracks so I can render fields from EventItem onto tracks via placement through the dynamic Zone. I know I could pull the data and render it inside the part, but I want it to be flexible and would prefer using placement/zones.

I know dynamic Zones are easy with alternates, like the one below on my Content-EventItem.Detail alternate:
However, my part uses a viewmodel so I need to predefine whatever properties/objects I use. I've read this blog as well but it doesn't work, or maybe I missed something:

Here's my full code (omitted irrelevant parts of code):

Track Part Template
Func<dynamic, dynamic> Zone = x => Display(x);

<div id="Overview-Tab" class="track-tab">
Track Part Viewmodel
public class DisplayAllViewModel
    //public Shape Overview { get; set; }
    public object Overview { get; set; }
    public List<TrackItem> Tracks { get; set; }
Placement for EventItem
<Match ContentType="EventItem">
    <Match DisplayType="Detail">
        Parts_Tracks="Content:2.5.6" />
The Sections field doesn't display at all when I use the Overview Zone.

Any piece of advise or information would be highly appreciated. Thanks!