Leiste mit Community-Erfolgen erweitern.

Submissions are now open for the 2026 Adobe Experience Maker Awards.

Mark Solution

Diese Konversation wurde aufgrund von Inaktivität geschlossen. Bitte erstellen Sie einen neuen Post.

GELÖST

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 Akzeptierte Lösung

Avatar

Korrekte Antwort von
Level 10

Try this

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

Lösung in ursprünglichem Beitrag anzeigen

3 Antworten

Avatar

Korrekte Antwort von
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.