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
10 months agoMeghann
10 months agoAlbina
10 months agoTamala
10 months agoChristoper
10 months agoAudry
11 months agoDong
11 months agoTish
11 months agoIsaiah
11 months agoLeonardo
11 months agoGary
11 months agoLouisa
11 months agoHaley
11 months agoJesusa
11 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