A developer wants to customize a core component.
Which property needs to be set in the new component to achieve this goal?
In AEM, the Sightly/HTL scripting language is used to develop robust and secure components. To render content conditionally based on the WCM (Web Content Management) mode, the wcmmode object is used. The correct property to check if the current mode is edit is wcmmode.edit. The HTL syntax for testing a condition is data-sly-test followed by the condition in ${}. The option B correctly uses this syntax to test if the WCM mode is edit, and if so, renders 'Hello World'.
Option A uses wcm.edit which is not the correct object property.
Option C uses wcmmode editor which is not the correct property and the syntax has a typo (should be data-sly-test).
Xochitl
3 months agoAyesha
26 days agoNovella
29 days agoThurman
1 months agoMauricio
1 months agoSharmaine
1 months agoRaylene
2 months agoYuette
2 months agoSheridan
3 months agoLynna
1 months agoJackie
1 months agoNu
1 months agoLea
1 months agoJani
1 months agoGayla
1 months agoFrance
2 months agoDona
3 months agoDawne
2 months agoFanny
2 months agoMitsue
2 months agoRebbecca
2 months agoKizzy
3 months agoChandra
2 months agoMira
2 months agoTyisha
2 months agoDeja
3 months agoAntonio
4 months agoMarylou
4 months agoFreeman
4 months ago