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
8 months agoMeghann
8 months agoAlbina
8 months agoTamala
9 months agoChristoper
9 months agoAudry
9 months agoDong
9 months agoTish
10 months agoIsaiah
10 months agoLeonardo
10 months agoGary
10 months agoLouisa
10 months agoHaley
10 months agoJesusa
10 months agoXochitl
1 year agoAyesha
1 year agoNovella
1 year agoThurman
1 year agoMauricio
1 year agoSharmaine
1 year agoRaylene
1 year agoYuette
1 year agoSheridan
1 year agoLynna
1 year agoJackie
1 year agoNu
1 year agoLea
1 year agoJani
1 year agoGayla
1 year 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