This project is read-only.

Layout.Title from custom layout shape

Topics: Writing themes
Jan 13, 2014 at 9:37 PM
I'm using 2 custom layout shapes to override the BlogPost and BlogPost Summary shapes. Someone noticed with my shapes, however, that the browser title bar was missing the simply had the site name.

I was able to correct this on the BlogPost layout shape by adding
Layout.Title = Model.ContentItem.TitlePart.Title
I'm trying to do the same for the BlogPost Summary layout and display the title of the Blog itself. Using the above code on this layout shape gets me the title of the last blog post on the page.

I tried Model.Title which didn't give me anything. Do you have a suggestion of how I can get to the title of the Blog itself from a BlogPost Summary layout shape named: Content-BlogPost.Summary.cshtml?

Thanks so much!
Jan 13, 2014 at 10:22 PM
Dug a little deeper and found my answer in this post:

All is good...thanks.
Marked as answer by psenechal on 1/28/2014 at 11:41 AM
Jan 13, 2014 at 10:33 PM