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 AD0-E123 Exam - Topic 2 Question 20 Discussion

A developer wants to customize a core component.Which property needs to be set in the new component to achieve this goal?
B) jcrlitle
A) sling:resourceType
C) slingresourceSuperType

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
8 months ago
Not sure about that, I thought it was something else.
upvoted 0 times
...
Meghann
8 months ago
Agreed, sling:resourceType is the way to go!
upvoted 0 times
...
Albina
8 months ago
Wait, jcrlitle? Is that even a thing?
upvoted 0 times
...
Tamala
9 months ago
I think it's actually slingresourceSuperType.
upvoted 0 times
...
Christoper
9 months ago
Definitely need to set sling:resourceType!
upvoted 0 times
...
Audry
9 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
9 months ago
I'm a bit confused about jcrlitle; I don't recall it being relevant for component customization.
upvoted 0 times
...
Tish
10 months ago
I remember practicing a similar question where we had to customize components, and I think slingresourceSuperType was mentioned.
upvoted 0 times
...
Isaiah
10 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
10 months ago
Definitely sling:resourceType. That's how you specify the component type in AEM.
upvoted 0 times
...
Gary
10 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
10 months ago
Hmm, I'm not sure about this one. I'll have to think it through carefully.
upvoted 0 times
...
Haley
10 months ago
I think the answer is sling:resourceType, since that's the property that defines the component type.
upvoted 0 times
...
Jesusa
10 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
1 year 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
1 year ago
I think we need to double-check the documentation to be sure.
upvoted 0 times
...
Novella
1 year ago
Actually, I'm pretty sure it's B) jcrlitle.
upvoted 0 times
...
Thurman
1 year ago
No, I believe it's C) slingresourceSuperType.
upvoted 0 times
...
Mauricio
1 year ago
I think it's A) sling:resourceType.
upvoted 0 times
...
Sharmaine
1 year ago
C) slingresourceSuperType
upvoted 0 times
...
Raylene
1 year ago
B) jcrlitle
upvoted 0 times
...
Yuette
1 year ago
A) sling:resourceType
upvoted 0 times
...
...
Sheridan
1 year 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
1 year ago
C. Yes, jcrlitle is not a valid property. slingresourceSuperType is the way to go.
upvoted 0 times
...
Jackie
1 year ago
C) slingresourceSuperType
upvoted 0 times
...
Nu
1 year ago
B) jcrlitle
upvoted 0 times
...
Lea
1 year ago
C. I agree, slingresourceSuperType is the correct property to set for customizing a core component.
upvoted 0 times
...
Jani
1 year ago
C) slingresourceSuperType
upvoted 0 times
...
Gayla
1 year ago
B) jcrlitle
upvoted 0 times
...
France
1 year ago
A) sling:resourceType
upvoted 0 times
...
...
Dona
1 year 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
1 year ago
No, that's not the property we need. It's A) sling:resourceType.
upvoted 0 times
...
Fanny
1 year ago
C) slingresourceSuperType
upvoted 0 times
...
Mitsue
1 year ago
Yes, you're correct. That's the property we need to set.
upvoted 0 times
...
Rebbecca
1 year ago
A) sling:resourceType
upvoted 0 times
...
...
Kizzy
1 year ago
I think the answer is C. slingresourceSuperType should be set to customize the core component.
upvoted 0 times
Chandra
1 year ago
I think the answer is C. slingresourceSuperType should be set to customize the core component.
upvoted 0 times
...
Mira
1 year ago
C) slingresourceSuperType
upvoted 0 times
...
Tyisha
1 year ago
B) jcrlitle
upvoted 0 times
...
Deja
1 year ago
A) sling:resourceType
upvoted 0 times
...
...
Antonio
1 year 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
1 year ago
I agree with Freeman. Setting sling:resourceType will allow customization of the core component.
upvoted 0 times
...
Freeman
1 year ago
I think the property that needs to be set is sling:resourceType.
upvoted 0 times
...

Save Cancel