Solved
How to limit the properties of a component when included on a page using data-sly-resource
I am trying to disable the dialog for a component when it is included on a page template using a data-sly-resource. The component has the dialog but should be disabled only when it is referenced on a page. Please suggest on how to achieve this.