Copied to clipboard

Flag this post as spam?

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


  • Andy Butland 398 posts 2254 karma points MVP 4x hq c-trib
    Jan 17, 2014 @ 14:32
    Andy Butland
    0

    Recursive values support?

    May well be me doing something wrong, but wondering if these converters are intended to support recursive lookups of properties (i.e. to look on the parent, then the parent's parent, until the item is found)?

    As I'm finding this code is returning null unless I'm actually on the page where the property is defined.

    var collection = CurrentPage.GetPropertyValue<IEnumerable<IPublishedContent>>("mapPage", true, null);

    If that's the case was thinking I could drop down to getting the raw value and converting myself, like this:

    var rawValue = CurrentPage.GetProperty("mapPage").Value.ToString();

    But GetProperty() (as opposed to GetPropertyValue()) doesn't have the recursive option.

    Any advice much appreciated.

    Thanks

    Andy

     

     

  • Andy Butland 398 posts 2254 karma points MVP 4x hq c-trib
    Jan 17, 2014 @ 15:13
    Andy Butland
    0

    Have done some more digging, I think this issue is the core of the problem.

  • Jeavon Leopold 3042 posts 13382 karma points MVP 8x admin c-trib
    Jan 17, 2014 @ 19:14
    Jeavon Leopold
    0

    Hi Andy,

    Yes, in fact this is fixed in the upcoming Umbraco v6.2 and I have fully tested it out.

    I do have a branch of this package with the v6.2 updates ready to go when it's launched.

    Regards,

    Jeavon

Please Sign in or register to post replies

Write your reply to:

Draft