BlackFriday 2024! 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 1 Question 1 Discussion

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

A developer wants to render Hello World' only in edit mode. Which approach would be used?

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:

Raymon
4 months ago
I personally prefer B) as the answer, as it uses 'wcmmode.edit' which seems more intuitive to me.
upvoted 0 times
...
Tony
4 months ago
I also think A) is the correct answer, as it directly checks for 'wcm.edit' without any additional asterisks or typos that could cause errors.
upvoted 0 times
...
Stevie
4 months ago
I think A) is the correct answer because it specifically checks for 'wcm.edit' which is used for edit mode.
upvoted 0 times
...
Elenora
4 months ago
I'm not sure, but I think it could be C)

Hello World

because it seems like it could be the correct format for rendering only in edit mode.
upvoted 0 times
...
Tamar
4 months ago
I disagree, I believe the answer is B)

Hello World

as it is more commonly used in practice.
upvoted 0 times
...
Clare
4 months ago
I think the answer is A)

Hello World

because it is the correct syntax for rendering in edit mode.
upvoted 0 times
...
Dorothy
5 months ago
I'm not sure, but I think C)

Hello World

might also work, as it seems to reference the editor mode.
upvoted 0 times
...
Kristal
5 months ago
I disagree, I believe the correct answer is A)

Hello World

as it directly checks if the page is in edit mode.
upvoted 0 times
...
Alana
6 months ago
I think the answer is B)

Hello World

because it checks if the page is in edit mode correctly.
upvoted 0 times
...

Save Cancel