Copied to clipboard

Flag this post as spam?

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


  • peter 13 posts 144 karma points
    May 18, 2017 @ 12:40
    peter
    0

    Nested Content List datatype

    Hi,

    In the docs it is stated that checkboxlist doesnt work as a nested content type. I tried to workaround this by using a Multinode contentpicker but that doesnt work either.

    Does anyone have found a way to implement a selectable list within nested content?

    Everytime i try to use this

    var x =  nestedcontentItem.GetPropertyValue<IEnumerable<IPublishedContent>>("alias")
    

    it just returns null.

  • Rhys Mitchell 28 posts 195 karma points
    May 18, 2017 @ 12:48
    Rhys Mitchell
    1

    Hi Peter,

    Have you tried returning an int array from the Nested Content? I'm just wondering whether you have the property converters installed or not.

    If I experienced an issue like this, I would try and shake any value whatsoever from the Nested Content.

    i.e.:

    var x =  nestedcontentItem.GetPropertyValue<int[]>("alias")
    

    This should return the ids of the items you're interested in.

    I hope this helps in any sort of a way :)

  • peter 13 posts 144 karma points
    May 18, 2017 @ 13:04
    peter
    0

    It seems that I do not have propertyconverters installed. Only without using a strongly typed,

    e.g.

    var x = nestedcontentItem.GetPropertyValue("alias")
    

    i get a result of

    umb://document/36155e35f91d4efda41b5cb4533001d5
    

    However i thought it was part of the core of umbraco 7?

  • peter 13 posts 144 karma points
    May 18, 2017 @ 13:18
    peter
    100

    By researching further i realized that in my

    umbracoSettings.config, i did not have the following setting in settings > content node:

    <EnablePropertyValueConverters>true</EnablePropertyValueConverters>
    

    Thank you Rhys for guiding me in the right direction!

  • Rhys Mitchell 28 posts 195 karma points
    May 18, 2017 @ 13:52
    Rhys Mitchell
    0

    No worries, glad I could help!

Please Sign in or register to post replies

Write your reply to:

Draft