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).
Xochitl
1 months agoRaylene
21 hours agoYuette
10 days agoSheridan
1 months agoFrance
14 days agoDona
2 months agoDawne
5 days agoFanny
17 days agoMitsue
24 days agoRebbecca
26 days agoKizzy
2 months agoChandra
7 days agoMira
13 days agoTyisha
18 days agoDeja
1 months agoAntonio
2 months agoMarylou
2 months agoFreeman
2 months ago