Nov 21, 2012 at 7:32 PM
Edited Nov 21, 2012 at 8:03 PM
This is what I did--I am not sure if it is the 'proper' way but it works fine for me.
In Layout.cshtml, determine if you are in the Homepage(I have two, one english, one French). So, in razor I have:
var homePage = (Context.Request.AppRelativeCurrentExecutionFilePath == "~/") ||
(Context.Request.AppRelativeCurrentExecutionFilePath == "~/fr") ? true : false;
Then, when you are defining the zones, only render the Content when it is not null and it is not in the homepage:
@if (Model.Content != null && !homePage)
This was before I ever messed with Placement.info, so I never tried to do it that way.
I am all ears if there are better ways to accomplish the same results.