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).
Melina
3 months agoMeghann
3 months agoAlbina
3 months agoTamala
4 months agoChristoper
4 months agoAudry
4 months agoDong
4 months agoTish
4 months agoIsaiah
5 months agoLeonardo
5 months agoGary
5 months agoLouisa
5 months agoHaley
5 months agoJesusa
5 months agoXochitl
9 months agoAyesha
8 months agoNovella
8 months agoThurman
8 months agoMauricio
8 months agoSharmaine
8 months agoRaylene
8 months agoYuette
9 months agoSheridan
10 months agoLynna
8 months agoJackie
8 months agoNu
8 months agoLea
8 months agoJani
8 months agoGayla
8 months agoFrance
9 months agoDona
10 months agoDawne
8 months agoFanny
9 months agoMitsue
9 months agoRebbecca
9 months agoKizzy
10 months agoChandra
9 months agoMira
9 months agoTyisha
9 months agoDeja
10 months agoAntonio
11 months agoMarylou
11 months agoFreeman
11 months ago