Expand my Community achievements bar.

SOLVED

How to limit the properties of a component when included on a page using data-sly-resource

Avatar

Level 3

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.

1 Accepted Solution

Avatar

Correct answer by
Level 10

Try this

    
<div data-sly-resource="${'path/to/resource' @ wcmmode='disabled'}"></div>

View solution in original post

3 Replies

Avatar

Correct answer by
Level 10

Try this

    
<div data-sly-resource="${'path/to/resource' @ wcmmode='disabled'}"></div>

Avatar

Level 3

I actually want to reference a page-component(which is developed on a different page template) on a particular page template and dont want to make it editable except in the actual location.

 

For example: A footer which is developed on a page and included on other templates.