Copied to clipboard

Flag this post as spam?

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

  • Dan White 206 posts 510 karma points c-trib
    Jan 09, 2019 @ 01:13
    Dan White

    Can items communicate with each other?

    Can stacked content items communicate with one another or the containing content node?

    For example, I'd like to build a property editor that will be in a stacked content item that can toggle values in another stacked content item or on the node containing the stacked content. Preferrably without doing some hacky dom selection.

    Hope that makes sense.

  • Nik 1604 posts 7229 karma points MVP 7x c-trib
    Jan 09, 2019 @ 09:09

    Hi Dan,

    Not really. Each of the stacked content blocks are a type of disconnected content. They don't store a reference to their parent container or their sibling stacked content blocks.

    Because of that, I don't think it would be straight forward to have some sort of conditional relationship between the items.


  • Lee Kelleher 4020 posts 15807 karma points MVP 13x admin c-trib
    Jan 09, 2019 @ 09:53
    Lee Kelleher

    re: containing content node - Do you mean in the Preview partial? If so, then the Model.Page has a reference to the current page (node). Keep in mind that it's the actual real node, just in case there are nested Stacked Contents, etc. Then no, the preview only gives you the Page and current SC Item properties.

    - Lee

  • Dan White 206 posts 510 karma points c-trib
    Jan 09, 2019 @ 23:53
    Dan White

    No, I mean the editor view. Basically editing a field in a stacked content item changes another field, not in the same stacked content item, live.

    Sort of a long these lines Making a change to one field triggers a change on another.

Please Sign in or register to post replies

Write your reply to: