Sightly/HTL: Render component in wcmmode=disabled mode | Community
Skip to main content
Peter_Puzanovs
Community Advisor
Community Advisor
July 22, 2016

Sightly/HTL: Render component in wcmmode=disabled mode

  • July 22, 2016
  • 2 replies
  • 8559 views

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

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

2 replies

kautuk_sahni
Community Manager
Community Manager
July 27, 2016

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
Kunal_Gaba_
August 5, 2016

Is there any update on this ? 

Adobe Employee
May 16, 2017

try this:

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