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 407 posts 514 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 362 posts 1956 karma points MVP 4x 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 407 posts 514 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

Please Sign in or register to post replies

Write your reply to:

Draft