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