I am trying to identify in my Event System and in my Templates when the rendering (template) or the action (event system) is being triggered from either Experience Manager or somewhere else in the system. The reason being I don't want some Events to execute if the user is doing inline editing or adding a component to a page from Experience Manager.
In the same way, I want my template to behave differently if the rendering is taking place in Experience Manager (I know this question might have been asked already, but can't find it)
I know that the RenderMode
will tell me something, but I now it doesn't always tell you the "truth".