Can we listen to our own macro removal events in Page edit?

Hi devs,

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?

6 Likes

I’ve raised this as a suggestion on CONFCLOUD to bring it to the Engineering team.

You can follow it here https://jira.atlassian.com/browse/CONFCLOUD-72066

2 Likes