Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.

Exported experience fragment content giving error while adding as offer in activity

Avatar

Level 9

Hello,

 

I have created a custom experience fragment template because of our need. I am using OOTB clould config to export experience fragment content to target. The export to target is successful and in target i can see the content through externalizer urls. 

 

Now when i try to use that experience fragment offer into activity, it doesn't include the experience fragment content which i can access through externalizer urls instead it give me below 

 

<!DOCTYPE HTML>
<html>
<head><meta http-equiv="content-type" content="text/html; charset=UTF-8"/>





<link rel="stylesheet" href="/etc.clientlibs/foundation/clientlibs/main.css" type="text/css">
<script type="text/javascript" src="/etc.clientlibs/clientlibs/granite/jquery.js"></script>
<script type="text/javascript" src="/etc.clientlibs/clientlibs/granite/utils.js"></script>
<script type="text/javascript" src="/etc.clientlibs/clientlibs/granite/jquery/granite.js"></script>
<script type="text/javascript" src="/etc.clientlibs/foundation/clientlibs/jquery.js"></script>
<script type="text/javascript" src="/etc.clientlibs/foundation/clientlibs/shared.js"></script>
<script type="text/javascript" src="/etc.clientlibs/foundation/clientlibs/main.js"></script>



















<title>exp-frag-luh-target-verify</title>
</head>
<body class="xf-web-container">

<!-- Error while including component -->

 

 

Now if i use OOTB experience fragment template for same content -->export to target and then use it as offer, it works fine.

 

Not sure if i am missing something which is not allowing it to render it there when included to activity.

 

Note: Currently i am using externalizer url which is inside vpn but as it works for OOTB template perfectly fine, i don't see any issue for custom experience fragment template.

 

 

Looking for help!!

 

THanks,

Pawan

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

3 Replies

Avatar

Community Advisor

What is the sling:resourceSuperType for your XF page component?

 

sling:resourceSuperType="cq/experience-fragments/components/xfpage"



Arun Patidar

Avatar

Level 9
Yes, i have extended the base exp frag template and created my custom template. the template page content comes perfectly fine when it is access directly the page url but it throws error when i access same page via exp frag offer. still debugging!!

Avatar

Level 4
Have you published the content to a publish environment?