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

Avatar

Avatar

rush_pawan

Avatar

rush_pawan

rush_pawan

23-10-2020

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

Accepted Solutions (0)

Answers (1)

Answers (1)

Avatar

Avatar

Arun_Patidar

MVP

Total Posts

2.9K

Likes

1.0K

Correct Answer

831

Avatar

Arun_Patidar

MVP

Total Posts

2.9K

Likes

1.0K

Correct Answer

831
Arun_Patidar
MVP

25-10-2020

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

 

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