In my Orchard site, there is a content type named Product. It has the parts Container and Routable. Products can contain a content type named ProductFeature.
I have overrode the view Content-Product.cshtml to modify the html when browsing to the Route url. Within this view, how can I get a list of all ProductFeature's the Product contains?
This post shows how to do this for a blog Widget. http://weblogs.asp.net/bleroy/archive/2011/03/27/taking-over-list-rendering-in-orchard.aspx
I'm having a hard time finding how to do this in the Product's content view. The code from the above example throws a null exception error, so the model structure must be different. I I tried looking at the model using Shape Tracing or debugging in Visual Studio, but couldn't find the contained items.
Any help would be appreciated.