Copied to clipboard

Flag this post as spam?

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


  • David Houghton 33 posts 108 karma points
    May 24, 2017 @ 12:38
    David Houghton
    0

    Multinode tree picker buggy in 7.6.1

    There is a bug in version 7.6.1 (unless the use of the multi node tree picker has been changed.

    var collection = new List<string>(navigationNode.GetPropertyValue<string>(footerNavigationAlias).Split(','));
    

    @collection.Count() always returns 1 item regardless of the amount.

    Im sure im doing it the right way as ive uised this extensively like this on another project, admittantly not this version. I used version 7.5.13.

    Seems this version is a bit buggy still, anyone had a similar issue or is the way you use the multinode treepicker different in 7.6.1?

    Thanks for any help.

  • David Houghton 33 posts 108 karma points
    May 24, 2017 @ 12:58
    David Houghton
    1

    Update:

    var collection = navigationNode.GetPropertyValue<IEnumerable<IPublishedContent>>(footerNavigationAlias);
    

    This seems to be the way to now interrogate the multinode treepicker, this returns a list of ID's which you can then pass into Umbraco.TypedContent(ID) helper.

    Wonder why the method in the first post doesnt work anymore...

  • Alex Skrypnyk 6150 posts 24110 karma points MVP 8x admin c-trib
    May 24, 2017 @ 13:00
    Alex Skrypnyk
    101

    Hi David

    It's because "Property Value Converters" is part of the core now. Read documentation -

    https://our.umbraco.org/documentation/getting-started/setup/upgrading/760-breaking-changes#property-value-converters-u4-7318

    You can disable this functionality by umbracoSetting.config setting: in section settings/content, setting EnablePropertyValueConverters needs to FALSE

    Thanks

    Alex

  • David Houghton 33 posts 108 karma points
    May 24, 2017 @ 13:11
    David Houghton
    1

    Ahhhhhh thanks Alex, ill check this out, something to be aware of when doing an upgrade.

  • Alex Skrypnyk 6150 posts 24110 karma points MVP 8x admin c-trib
    May 24, 2017 @ 13:22
    Alex Skrypnyk
    0

    Agree with you, it will be nice to have some notification that your code will be different from now after upgrade :)

    Glad that you figured it out, have a nice evening!

    Alex

Please Sign in or register to post replies

Write your reply to:

Draft