Highlighted

No popup showing for unpublished experience fragments when added on page

surabhid2471036

11-09-2018

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.

Replies

Highlighted

smacdonald2008

11-09-2018

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.

Highlighted

surabhid2471036

11-09-2018

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>

Highlighted

surabhid2471036

11-09-2018

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

Highlighted

smacdonald2008

13-09-2018

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.