I'm trying to reproduce this layout in Orchard. So far, I've got most of the stuff worked out by using an alternate for my blog post detail (Content-BlogPost.Detail.cshtml
). The problem is that the layout I've created looks something like this:
My first question is, does this layout make any sense? Is there a better way to accomplish this result (that is, getting the archives displayed in line with the content)?
Secondly, is there a way to render a zone (or a widget) from inside my alternate? I tried doing @Display(Model.Archives)
, where Archives
is the name of my zone, but obviously the blog detail model doesn't define an Archives property. I also considered manually calling out to the Blog Archives shape with something like
@Display(New.Parts_Blogs_BlogArchives(new { Blog: blog, Archives: ???})
But I don't know how to populate that second argument.
What's the right way to make this layout happen in Orchard?