I ran into a problem when using Orchard that I am sure there should be a fairly simple fix / solution, but I have not found it yet.
I am trying to set a specific area of content width for my home page (580 pixels) and a larger width for content pages (800 pixels).
Layout.cshtml Snippet:
<div id='content'> @Zone(Model.Content) </div>
Style:
Currently - the content div wraps all my content regardless of the page (either the home page or the content). I am wondering if another div can be used to wrap page-based content, as shown below:
Layout.cshtml Idea:
@if(Model.Page != "Home") { <div id='fullcontent'> @Zone(Model.Content) </div> } else { <div id='content'> @Zone(Model.Content) </div> }
I'm not sure if the method suggested above is possible (or I'm not sure how to check the current page), but any other suggestions would be appreciated.
styling layout orchardcms
Rion williams
source share