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
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

Include XF in Sightly

vdhim23
Level 5
Level 5

Hi,

I need to add XF in sightly as static include. e.g.

<sly data-sly-resource="${@ path=xfpath, resourceType='cq/experience-fragments/editor/components/experiencefragment'}" />

Here xfpath is the path of experience fragment. But this fragment not display on my page. what is the way to do it?

xfpath = /content/experience-fragments/myapp/en/products/1234

Regards,

1 Accepted Solution
Arun_Patidar
Correct answer by
Community Advisor
Community Advisor

<sly data-sly-resource="/content/experience-fragments/myapp/en/products/1234"></sly>

View solution in original post

1 Reply
Arun_Patidar
Correct answer by
Community Advisor
Community Advisor

<sly data-sly-resource="/content/experience-fragments/myapp/en/products/1234"></sly>

View solution in original post