QuestionQ19

Verified(Official exam topics not publicly listed on Adobe’s certification page)

A developer needs to render ‘Hello World’ only when in edit mode.

Which approach should be used?

Explanation

AEM HTL conditionally renders markup with data-sly-test. The wcmmode.edit expression evaluates to true when the current WCM mode is edit, so it limits the paragraph’s rendering to edit mode.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!