New Year Sale 2026! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Adobe AD0-E123 Exam - 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:

0/2000 characters
Melina
3 months ago
Not sure about that, I thought it was something else.
upvoted 0 times
...
Meghann
3 months ago
Agreed, sling:resourceType is the way to go!
upvoted 0 times
...
Albina
3 months ago
Wait, jcrlitle? Is that even a thing?
upvoted 0 times
...
Tamala
4 months ago
I think it's actually slingresourceSuperType.
upvoted 0 times
...
Christoper
4 months ago
Definitely need to set sling:resourceType!
upvoted 0 times
...
Audry
4 months ago
I feel like sling:resourceType is the right answer, but I should double-check if there are any exceptions or additional properties involved.
upvoted 0 times
...
Dong
4 months ago
I'm a bit confused about jcrlitle; I don't recall it being relevant for component customization.
upvoted 0 times
...
Tish
4 months ago
I remember practicing a similar question where we had to customize components, and I think slingresourceSuperType was mentioned.
upvoted 0 times
...
Isaiah
5 months ago
I think it's definitely the sling:resourceType, but I'm not entirely sure if that's the only property we need to set.
upvoted 0 times
...
Leonardo
5 months ago
Definitely sling:resourceType. That's how you specify the component type in AEM.
upvoted 0 times
...
Gary
5 months ago
Sling:resourceType sounds like the right property to set, but I'm not 100% confident. I'll review the material again before answering.
upvoted 0 times
...
Louisa
5 months ago
Hmm, I'm not sure about this one. I'll have to think it through carefully.
upvoted 0 times
...
Haley
5 months ago
I think the answer is sling:resourceType, since that's the property that defines the component type.
upvoted 0 times
...
Jesusa
5 months ago
The key here is customizing the core component, so I'm guessing it's slingresourceSuperType to inherit from the base component.
upvoted 0 times
...
Xochitl
9 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
Ayesha
8 months ago
I think we need to double-check the documentation to be sure.
upvoted 0 times
...
Novella
8 months ago
Actually, I'm pretty sure it's B) jcrlitle.
upvoted 0 times
...
Thurman
8 months ago
No, I believe it's C) slingresourceSuperType.
upvoted 0 times
...
Mauricio
8 months ago
I think it's A) sling:resourceType.
upvoted 0 times
...
Sharmaine
8 months ago
C) slingresourceSuperType
upvoted 0 times
...
Raylene
8 months ago
B) jcrlitle
upvoted 0 times
...
Yuette
9 months ago
A) sling:resourceType
upvoted 0 times
...
...
Sheridan
10 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
Lynna
8 months ago
C. Yes, jcrlitle is not a valid property. slingresourceSuperType is the way to go.
upvoted 0 times
...
Jackie
8 months ago
C) slingresourceSuperType
upvoted 0 times
...
Nu
8 months ago
B) jcrlitle
upvoted 0 times
...
Lea
8 months ago
C. I agree, slingresourceSuperType is the correct property to set for customizing a core component.
upvoted 0 times
...
Jani
8 months ago
C) slingresourceSuperType
upvoted 0 times
...
Gayla
8 months ago
B) jcrlitle
upvoted 0 times
...
France
9 months ago
A) sling:resourceType
upvoted 0 times
...
...
Dona
10 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
8 months ago
No, that's not the property we need. It's A) sling:resourceType.
upvoted 0 times
...
Fanny
9 months ago
C) slingresourceSuperType
upvoted 0 times
...
Mitsue
9 months ago
Yes, you're correct. That's the property we need to set.
upvoted 0 times
...
Rebbecca
9 months ago
A) sling:resourceType
upvoted 0 times
...
...
Kizzy
10 months ago
I think the answer is C. slingresourceSuperType should be set to customize the core component.
upvoted 0 times
Chandra
9 months ago
I think the answer is C. slingresourceSuperType should be set to customize the core component.
upvoted 0 times
...
Mira
9 months ago
C) slingresourceSuperType
upvoted 0 times
...
Tyisha
9 months ago
B) jcrlitle
upvoted 0 times
...
Deja
10 months ago
A) sling:resourceType
upvoted 0 times
...
...
Antonio
11 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
11 months ago
I agree with Freeman. Setting sling:resourceType will allow customization of the core component.
upvoted 0 times
...
Freeman
11 months ago
I think the property that needs to be set is sling:resourceType.
upvoted 0 times
...

Save Cancel