Copied to clipboard

Flag this post as spam?

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


  • Kamal Hamzat 17 posts 137 karma points
    Dec 03, 2021 @ 06:38
    Kamal Hamzat
    0

    Is there a replacement for GetProperty(nestedContentProperty)?.DataValue in Umbraco 8

    In Umbraco 7 GetProperty(nestedContentProperty)?.DataValue?.ToString() will return a list of nesteditems as Json string.

    This is no more DataValue in Umbraco 8, is there a replacement for it in Umbraco 8.

    While var nodeContent1 = node.Value(nestedContentProperty);

    will return list of nestedItems.

    It is expensive to convert to json due to Self referencing loop detected for property 'ContentType'....

    However,

    var nodeContent = node.Value<JObject>(nestedContentProperty);
    

    return null.

    Thanks in anticipation for your reply.

    Kamal

Please Sign in or register to post replies

Write your reply to:

Draft