I hope the title is straight forward enough as a question but here’s some context:
We are trying to render a component in a webpanel by specifying some conditions for it such that, the component should only render if a content property exists or is truthy.
We can set this content property key value to
true upon inserting the macro to the page but if the macro is being remove from the page during Page edit, we need to unset or set the content property value to false so the conditions would work in our favour.
At the moment, I don’t see any way of listening to events when a macro is removed from the page. Any advice or ideas if this is possible?