Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Morten 105 posts 345 karma points
    Apr 03, 2017 @ 08:13
    Morten
    0

    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.

  • Alex Skrypnyk 6182 posts 24283 karma points MVP 8x admin c-trib
    Apr 03, 2017 @ 10:10
    Alex Skrypnyk
    0

    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

  • Morten 105 posts 345 karma points
    Apr 03, 2017 @ 10:16
    Morten
    0

    Doesn't this mean, that all pages under the Master document type will have this property tab as well?

  • Alex Skrypnyk 6182 posts 24283 karma points MVP 8x admin c-trib
    Apr 03, 2017 @ 10:17
    Alex Skrypnyk
    0

    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.

  • Morten 105 posts 345 karma points
    Apr 03, 2017 @ 10:23
    Morten
    0

    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.
    

    And for CONTENT:

    - Home
    -- Products
    -- etc. etc.
    

    Or am I completely wrong here?

  • Alex Skrypnyk 6182 posts 24283 karma points MVP 8x admin c-trib
    Apr 03, 2017 @ 10:26
    Alex Skrypnyk
    100

    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

  • Alex Skrypnyk 6182 posts 24283 karma points MVP 8x admin c-trib
    Apr 03, 2017 @ 10:12
    Alex Skrypnyk
    0

    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.

    - Home
    -- About Us Page
    -- Products Page
    -- etc. etc.
    
  • 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

Please Sign in or register to post replies