wcmmode not working in author | Community
Skip to main content
jayv25585659
Level 8
February 1, 2023
Solved

wcmmode not working in author

  • February 1, 2023
  • 3 replies
  • 1563 views

so I have these lines in my component

 

<p>wcmmode.edit: ${wcmmode.edit}</p>
<p>wcmmode.disabled: ${wcmmode.disabled}</p>

 

wcmmode.edit return false.

wcmmode.disabled returns true.

 

any ideas? thanks

EDIT: I checked the runmode and it's listing "author" as one of the runmodes.

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

Can you try installing AEM fiddle to your instance I think that can help you debug the issue

https://adobe-consulting-services.github.io/acs-aem-tools/features/aem-fiddle/index.html

3 replies

Gaurav_Sachdeva_
Level 3
February 1, 2023

Hi @jayv25585659 

 

To get these values you have to append ?wcmmode=disabled or  ?wcmmode=edit in the URL.

please refer to below screenshots.

 

 

 

Thanks,

Gaurav

jayv25585659
Level 8
February 2, 2023

still not working. anymore more ideas? (can this be an OSGI config?)

indranilmAccepted solution
Level 2
February 2, 2023

Can you try installing AEM fiddle to your instance I think that can help you debug the issue

https://adobe-consulting-services.github.io/acs-aem-tools/features/aem-fiddle/index.html

Ritesh_Mittal
Community Advisor and Adobe Champion
Community Advisor and Adobe Champion
February 2, 2023

Hi @jayv25585659 ,

 

Just to double check you have 'editor.html' added to the author URL? 

 

Thanks,

Ritesh

November 23, 2023

Check if data-sly-resource="${@path=fragment.localizedFragmentVariationPath, selectors=selector, wcmmode='disabled'}" is present in your component. If so, below solution will help you.


In this instance, the last parameter, wcmmode='disabled' causes the component to return false to the value ${wcmmode.edit}.


To fix this, remove the wcmmode='disabled' from the data-sly-resource.