Independence Day Deal! Unlock 25% OFF Today – Limited-Time Offer - 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
1 months 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
Raylene
21 hours ago
B) jcrlitle
upvoted 0 times
...
Yuette
10 days ago
A) sling:resourceType
upvoted 0 times
...
...
Sheridan
1 months 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
14 days ago
A) sling:resourceType
upvoted 0 times
...
...
Dona
2 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
Dawne
5 days ago
No, that's not the property we need. It's A) sling:resourceType.
upvoted 0 times
...
Fanny
17 days ago
C) slingresourceSuperType
upvoted 0 times
...
Mitsue
24 days ago
Yes, you're correct. That's the property we need to set.
upvoted 0 times
...
Rebbecca
26 days ago
A) sling:resourceType
upvoted 0 times
...
...
Kizzy
2 months ago
I think the answer is C. slingresourceSuperType should be set to customize the core component.
upvoted 0 times
Chandra
7 days ago
I think the answer is C. slingresourceSuperType should be set to customize the core component.
upvoted 0 times
...
Mira
13 days ago
C) slingresourceSuperType
upvoted 0 times
...
Tyisha
18 days ago
B) jcrlitle
upvoted 0 times
...
Deja
1 months 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