Ideal structure for Umbraco 7 content with a master template
I'm trying to make my Umbraco layout. I have set up Umbraco before and used it, but my layout was as following:
- Home
-- About Us Page
-- Products Page
-- etc. etc.
That structure allowed me to visit / and get the home page, but having the subpages (About Us and Products) as children of Home does not make any sense. They are not connected together at all, except they all use a Master template.
If I want to make a better structured setup for my new page, I would assume this would be the best approach:
- Master
-- Home Page
-- About Us Page
-- Products Page
-- etc. etc.
However, this would mean that visiting / would give me the Master template without content, but visiting /home would give me what I want.
So what is the most ideal setup? It seems weird they are all inheriting from the Home document type, because that's what my / root page should be.
First of all, you can avoid "/home" at the url by using Umbraco Internal Redirect. Just go to the Settings section, for the Master Document Type, create a new property of type ContentPicker, with the alias umbracoInternalRedirectId.
Then in your Content section, for your Master node, select the Home Page for the umbracoInternalRedirectId value.
umbracoInternalRedirectId
Add this property alias to your document type with a content picker, and Umbraco will load the selected page’s content transparently without performing any URL redirection.
I am talking about the document type structure.. I think. I don't really know. It's hard to wrap my head around all these inheritances, when they aren't really inheriting anything.
The most ideal would be for DOCUMENT TYPES:
- Master
-- Home (allow at root)
-- Products
-- etc. etc.
You are right. It is a good structure to have Master as root document type and Home Page just like other inherited from Master.
Also you can try to use Compositions - its another way to do it. In this case Master will be Composition, and you will be able to select which document type has to be inherited from Master.
Ideal structure for Umbraco 7 content with a master template
I'm trying to make my Umbraco layout. I have set up Umbraco before and used it, but my layout was as following:
That structure allowed me to visit
/
and get the home page, but having the subpages (About Us and Products) as children of Home does not make any sense. They are not connected together at all, except they all use a Master template.If I want to make a better structured setup for my new page, I would assume this would be the best approach:
However, this would mean that visiting
/
would give me the Master template without content, but visiting/home
would give me what I want.So what is the most ideal setup? It seems weird they are all inheriting from the Home document type, because that's what my
/
root page should be.Hi Morten
First of all, you can avoid "/home" at the url by using Umbraco Internal Redirect. Just go to the Settings section, for the Master Document Type, create a new property of type ContentPicker, with the alias umbracoInternalRedirectId.
Then in your Content section, for your Master node, select the Home Page for the umbracoInternalRedirectId value.
umbracoInternalRedirectId
Add this property alias to your document type with a content picker, and Umbraco will load the selected page’s content transparently without performing any URL redirection.
Thanks,
Alex
Doesn't this mean, that all pages under the Master document type will have this property tab as well?
Morten, I thought we are talking about Content structure.
Do you mean that this is document type structure?
It will inherit properties if this is document types structure.
I am talking about the document type structure.. I think. I don't really know. It's hard to wrap my head around all these inheritances, when they aren't really inheriting anything.
The most ideal would be for DOCUMENT TYPES:
And for CONTENT:
Or am I completely wrong here?
You are right. It is a good structure to have Master as root document type and Home Page just like other inherited from Master.
Also you can try to use Compositions - its another way to do it. In this case Master will be Composition, and you will be able to select which document type has to be inherited from Master.
Thanks,
Alex
This structure is better if you have a lot of properties from Home Page on all pages, then it will be faster rendering little bit.
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.
Continue discussion