Copied to clipboard

Flag this post as spam?

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


  • Heather Floyd 531 posts 787 karma points MVP 2x c-trib
    Oct 10, 2015 @ 00:50
    Heather Floyd
    0

    Macro Container DataTypes lose value on save

    I really LOVE Nested Content, but today found that when I had a Nested Content DocType which uses a "Macro Container" Datatype for one of the properties, it won't save the selected macro values.

    It displays on the Content node correctly. I can select the macro and add parameter values, and it displays nicely in the Nested Content control, but when I save the node, the value is not stored. If I come back to the node later, the values are missing, and the property always returns "NULL" via code.

  • Robert Foster 440 posts 1684 karma points MVP admin c-trib
    Oct 10, 2015 @ 03:47
    Robert Foster
    1

    Hi Heather,

    See this issue on the NestedContent repository:

    https://github.com/leekelleher/umbraco-nested-content/issues/20

    Basically, the content for macro container isn't updated early enough and we need to perform some magic to make sure we save after it's updated.

    There's a pull request that gets around this deficiency here:

    https://github.com/leekelleher/umbraco-nested-content/pull/22/commits

    Hope this helps...

    Rob.

  • Lee Kelleher 3945 posts 15163 karma points MVP 10x admin c-trib
    Oct 14, 2015 @ 08:48
    Lee Kelleher
    0

    Hi Heather,

    As Robert says, there's a whole discussion about this on our GitHub issue tracker, plus Roberts pull-request.

    The underlying discussion for an overall solution is on-going, (abet gone stale / on the backburner at the moment). (We're in discussions of NC going into Umbraco core, so want to involve the core team as much as possible)

    The current situation, (as in today) is that Macro Container is a known issue and isn't supported yet. (For reference, Upload and Image Cropper aren't supported too) :-(

    Proposed solutions are either applying Robert's pull-request patch, or using Archetype... or going with separate child nodes.

    Thanks,
    - Lee

  • 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