Expand my Community achievements bar.

Guidelines for the Responsible Use of Generative AI in the Experience Cloud Community.

Sightly/HTL: Render component in wcmmode=disabled mode

Avatar

Community Advisor

Dear AEM community,

Trying to render component with the disabled WCMMode e.g.

<span class="component-floating-label">${'root.author.omniture.reference.name' @ i18n}</span> <div data-sly-list.item="${reference.list}"> <div>${item}</div> <sly data-sly-resource="${reference.list}.html" @resourceType="apps/omniture-v2/components/content/suggests", wcmmode="disabled" /> </div>

The example provided renders component as it should, but does not adhere to making component wcmmode=disabled, e.g. non author-able.

How to make the component non-author-able, disabled?

Thanks,

Peter

3 Replies

Avatar

Administrator

Hi 

"<article data-sly-resource="${'path/to/resource' @ wcmmode='disabled'}"></article>" should have worked.

I would like you to wait for internal team to answer this.

~kautuk



Kautuk Sahni

Avatar

Employee

try this:

<sly data-sly-resource="${ 'text' @ resourceType='wcm/foundation/components/text', wcmmode='disabled'}" ></sly>