Copied to clipboard

Flag this post as spam?

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


  • Danny Winbourne 12 posts 63 karma points
    Jun 17, 2021 @ 09:13
    Danny Winbourne
    0

    Umbraco 8 - Property Inheritance

    I have a property on my page, that is either set on the page, or one of it's ancestors.

    How do I get this value in my Razor view please? The value could be set on the page itself, or in any ancestor page? I want to avoid the editor having to add the same value again on all child pages, and just inherit the value down the content tree.

    All the pages will be the same Document Type.

  • Marc Love (uSkinned.net) 447 posts 1789 karma points
    Jun 17, 2021 @ 09:40
    Marc Love (uSkinned.net)
    100

    Hi Danny,

    You can use fallbacks on Umbraco properties. See here:

    https://our.umbraco.com/documentation/reference/querying/ipublishedcontent/Properties/#fallbacks

    Cheers,

    Marc

  • Danny Winbourne 12 posts 63 karma points
    Jun 17, 2021 @ 09:46
    Danny Winbourne
    0

    That's perfect, thank you.

    I am just starting to get my head around the Umbraco API, after working with Kentico for many years.

  • Marc Love (uSkinned.net) 447 posts 1789 karma points
    Jun 17, 2021 @ 10:38
    Marc Love (uSkinned.net)
    0

    Hi Danny,

    You're welcome. We have been working with Umbraco for a long time and have built a ton of features into our uSkinned Site Builder for Umbraco.

    You can try it out for free here. We will send you a link to a hosted trial so that you can get a feel for the power of Umbraco.

    https://trial.uskinned.net

    Cheers,

    Marc

Please Sign in or register to post replies

Write your reply to:

Draft