Expand my Community achievements bar.

No popup showing for unpublished experience fragments when added on page

Avatar

Level 2

Hi,

For our project requirement we need to overlay experience fragment(/libs/cq/experience-fragments/editor/components/experiencefragment) component. Now when we add this experience fragment component on the page and author experience fragment variation path which is not published, it should open a popup which displays the fragment which are not published same as dam assets when referred on the page(as shown in below screenshot). But in our case, page is published without popup.

popup.png

Any pointers would be helpful.

4 Replies

Avatar

Level 10

What code changes have you tried. Can you post the starting point of the changes you have implemented so community can suggest how best to implement. This is a very specific customization (without any docs) and in order for members to understand what you are trying to do - the code should be posted too.

Avatar

Level 2

We have copied the experiencefragment component from /libs/cq/experience-fragments/editor/components/experiencefragment

and pasted it in our project specific folder. And in experiencefragment.html removed highlighted piece of code.

<sly data-sly-test=${data.fragmentPath}

         data-sly-resource="${@path=data.fragmentPath, selectors='content', wcmmode='disabled'}"></sly>

Avatar

Level 2

Also tried not doing any code changes in experiencefragment.html. Just copy pasted component in our project. Still it didn't work.

Avatar

Level 10

I looked for examples here that can help - but could not find any. THis is not a common use case - that is the reason why there are no examples.