Copied to clipboard

Flag this post as spam?

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


  • Edward 21 posts 113 karma points
    Dec 07, 2015 @ 11:56
    Edward
    1

    Creating new elements/nodes

    Hello,

    Is there any way how can i add more items in nested content from c# ?

    Thank you

  • Lee Kelleher 4026 posts 15837 karma points MVP 13x admin c-trib
    Dec 07, 2015 @ 12:04
    Lee Kelleher
    100

    Hi Edward,

    I haven't tried to do this myself, (I've had no need to yet), but I know someone else is trying to do it...

    See this forum post:

    https://our.umbraco.org/projects/backoffice-extensions/nested-content/nested-content-feedback/72977-can-i-write-collection-of-ipublishedcontent-back-to-model-property

    Ultimately the raw data is stored as a serialized Dictionary<string, object> JSON blob.

    I hope this helps?

    Cheers,
    - Lee

  • Edward 21 posts 113 karma points
    Dec 07, 2015 @ 14:36
    Edward
    0

    Thank you for response Lee,

    I ended up with easiest solution for my case.. is just.. Model which corresponds to Nested Content Doc Type, and by deserializing/serializing the value.

    It's ok this time, because that Model is not going to change.

    Appreciate your response. :)

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies