Copied to clipboard

Flag this post as spam?

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


  • Yoni 49 posts 118 karma points
    Nov 06, 2016 @ 16:16
    Yoni
    0

    I have 3 or 4 umbraco sites that are the exact same, code-wise, but different in content, logos, images, etc..

    So, every time I have to make a change, I have to do it 4 times.

    I have finally decided that its time to get this into one Umbraco Multi-Site instance.

    I'm sure more things will come up, but I am trying start from the beginning.

    The first common change for each of these is the site Logo. Now, obviously, the Site Logo is the same for every page in that site. So I don't want to have to set the Logo Image property for every content page in each site.

    So, my question, is How can I set a value of a parameter to the "root" content page of a site and have that value cascade down to all the other pages without setting it again and again?

    Thanks in advance for your help

  • Søren Mastrup 122 posts 563 karma points c-trib
    Nov 06, 2016 @ 18:53
    Søren Mastrup
    0

    You could make a global settings node in the root of the node tree and reference that node from your template. Like this:

    • Site 1
    • Site 2
    • Site 3
    • Site 4
    • Global settings

    You could get the settings node like this:

    var rootSettings = CurrentPage.AncestorsOrSelf("globalSettings").First();
    
Please Sign in or register to post replies

Write your reply to:

Draft