Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn more

View all

Sign in to view all badges

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

rush_pawan
Community Advisor
Community Advisor

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

custom experience fragment Experience Fragments Target Target activities
3 Replies
Arun_Patidar
Community Advisor
Community Advisor

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

 

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

rush_pawan
Community Advisor
Community Advisor
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!!
prashantonkar
Level 4
Level 4
Have you published the content to a publish environment?