AEM 6.5 experience fragment containing building block and wcmmode
Hi ,
I was playing around with experience fragments and noted that if a component even core component with a check on wcmmode.edit is done in sightly , and is included on XF, it does not pick up the mode in preview or disabled mode(view as published) within XF if the component is included within a building block.
This impacts the webpage when wcmmode disabled when XF is included with a building block.
eg, I want a component to have a message if authoring mode or wcmmode is edit and in preview or disabled mode the component should not show the message on an XF and when XF is included on webpage and if the components are part of building block within the XF
1. if the component is added within the building block , the same behavior is noted and, if you check with wcmmodes.isTouchAuthoring , it works only on wcmmode disabled and NOT preview ..
Observed this behavior OOTB core components , should !wcmmode.disabled be used ?