Nov 16, 2011 at 12:14 PM
Edited Nov 16, 2011 at 12:16 PM
I added a content field called 'PageBodyId' to my Page content type. I've copied the core document.cshtml into the /Views folder of my theme and I want to make a modification that will generate the following markup:
If would have expected the following would do the trick:
<body id="@if (Model.PageBodyId != null)
Maybe this isn't possible in document.cshtml? However I don't know how to get at the value of the content field from a view at all.
Liking the product so far, thanks in advance for any assistance.