Expand my Community achievements bar.

AEM Annotations cq-placeholder issue

Avatar

Level 1

Hi

I'm trying to get the AEM annotations (https://docs.adobe.com/docs/en/aem/6-2/author/page-authoring/annotations.html) work in combination with the cq-placeholder always displayed over the current component. Sightly script looks like this:

<sly data-sly-test.emptyContent="${wcmmode.edit}"> <div data-emptytext="My Component" class="cq-placeholder"></div> </sly> <sly data-sly-test="${properties.text || properties.title}"> ${properties.title} ${properties.text @ context='html'} </sly>

This works fine in the authoring mode, but when an author wants to add an AEM annotation, he can't select the component. We want the placeholder to be overlaying the content, so that the author knows which component it is. Anyone ever faced / fixed this issue?

Cheers

3 Replies

Avatar

Level 10

Hi,

You mean to say, author is not able to edit the component at all when he put the placeholder?

~ Ratna.

Avatar

Level 1

Hi

  did you get any solution for this?

Thanks

Dipti