Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
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.
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.
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.
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 https://our.umbraco.com/packages/backoffice-extensions/conditional-displayers/. Making a change to one field triggers a change on another.
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted