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