I currently have these Document Types:
Master
Home
News
About
I allow Home at root, so when I visit /
it will show my home, instead of going to /home
. Then I create a new Content for Home. That means my Content/page layout looks like this:
Home
News
About
Since I want all my pages to be /news
and /about
, but still have /
be my Home, I therefore allow News and About to be children of Home (in the permissions tab). This is great and all, because I can then create properties on my Home Document Type, which the other document types will inherit (such as SEO).
Well, both great and bad. If I want my Home page to have properties that none of the other pages will inherit, I cannot do that now, because all the other pages inherits from my Home Document Type.
How am I supposed to achieve this:
- Have a Master.cshtml file, which has
@RenderBody()
- Make a property on Home which will not be inherited by all the other Document Types
- Make sure
/
is my Home content page
The only way I can think about this, is by allowing my Master Document Type at root, then replace my Home Document Type with Master and have the same structure as now, but basically have Home as a child of Master (in the content page). This would mean /
is set to the Master content page, which I do not want. However, URL rewriting /home
to /
should solve my issue, right?
Is there a better way? Is this the way to go? Let me know how you guys would structure a page like this, so I can create properties for all pages and while separating Home from the rest of the pages.
Thanks!