Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Adobe Exam AD0-E123 Topic 2 Question 20 Discussion

Actual exam question for Adobe's AD0-E123 exam
Question #: 20
Topic #: 2
[All AD0-E123 Questions]

A developer wants to customize a core component.

Which property needs to be set in the new component to achieve this goal?

Show Suggested Answer Hide Answer
Suggested Answer: B

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).


Contribute your Thoughts:

Xochitl
19 days ago
Ah, the age-old question of how to customize a core component. I bet the answer is hidden in the fine print of the JCR specification. Or maybe it's written in invisible ink on the developer's forehead.
upvoted 0 times
...
Sheridan
27 days ago
B. jcrlitle? Really? That's not even a valid property. I'm going with C, it's the only option that makes sense.
upvoted 0 times
France
3 days ago
A) sling:resourceType
upvoted 0 times
...
...
Dona
1 months ago
I'm pretty sure it's A. sling:resourceType is the property we need to set to customize the core component.
upvoted 0 times
Fanny
5 days ago
C) slingresourceSuperType
upvoted 0 times
...
Mitsue
13 days ago
Yes, you're correct. That's the property we need to set.
upvoted 0 times
...
Rebbecca
14 days ago
A) sling:resourceType
upvoted 0 times
...
...
Kizzy
1 months ago
I think the answer is C. slingresourceSuperType should be set to customize the core component.
upvoted 0 times
Mira
2 days ago
C) slingresourceSuperType
upvoted 0 times
...
Tyisha
7 days ago
B) jcrlitle
upvoted 0 times
...
Deja
29 days ago
A) sling:resourceType
upvoted 0 times
...
...
Antonio
2 months ago
I'm not sure, but I think it might be slingresourceSuperType. Can someone explain why sling:resourceType is the correct answer?
upvoted 0 times
...
Marylou
2 months ago
I agree with Freeman. Setting sling:resourceType will allow customization of the core component.
upvoted 0 times
...
Freeman
2 months ago
I think the property that needs to be set is sling:resourceType.
upvoted 0 times
...

Save Cancel
az-700  pass4success  az-104  200-301  200-201  cissp  350-401  350-201  350-501  350-601  350-801  350-901  az-720  az-305  pl-300  

Warning: Cannot modify header information - headers already sent by (output started at /pass.php:70) in /pass.php on line 77
a