I have the following zone in my layout file:
@Display(Model.Blog)
I want to always display my list of blog posts in this zone, so I edited the placement.info file as follows:
<Place Parts_Blogs_BlogPost_List="Blog"/>
Parts.Blogs.BlogPost.List.cshtml lives in the catalog of representations of my theme.
I can not get the blog to render. If you change the name of the zone to "Content", it will work ....
Update
In place.info in the directory of my themes directory:
<Place Parts_Blogs_BlogPost_List="/BlogZone"/>
In my layout.cshtml
@if (Model.Content != null) { <div id="content"> <div class="container"> @Display(Model.Content) </div> </div> } @if (Model.BlogZone != null) { <div id="content">blog zone <div class="container"> <div class="row-fluid"> <h2 class="title-divider"><span>Company <span class="de-em">Blog</span></span> <small>We love to talk!</small></h2> </div> <div class="row"> <div class="span9 blog-roll blog-list"> @Display(Model.BlogZone) </div> </div> </div> </div> }
The Parts_Blogs_BlogPost_List part is still displayed inside the Content area.
source share