Copied to clipboard

Flag this post as spam?

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


  • andrew shearer 409 posts 517 karma points
    Jul 26, 2019 @ 03:00
    andrew shearer
    0

    how to recurse in Umbraco 8 Value<T> method?

    In umbraco 7, GetPropertyValue T had a signature overload for recursively walking up the tree. Does the method Value T in umbraco 8 have this functionality? I can't find an overload for it.

    thanks

  • Andy Butland 373 posts 2057 karma points MVP 4x hq c-trib
    Jul 26, 2019 @ 07:55
    Andy Butland
    101

    It does yes, you need to look at the fallback parameter - see docs here - specifically fallback: Fallback.ToAncestors.

    Andy

  • andrew shearer 409 posts 517 karma points
    Jul 28, 2019 @ 20:19
    andrew shearer
    0

    Ahh yes thanks for clarifying. I mustve skimmed the documentation and thought fallback was just for multilingual considerations. I see now it covers recursion too

    thanks

  • 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.

Please Sign in or register to post replies