migrate to EXPERIENCE FRAGMENT STRUCTURE COMPONENT to SITE STRUCTURE COMPONENT

Avatar

Avatar

karthick1356

Avatar

karthick1356

karthick1356

25-02-2021

Hi all,

i'm facing a challenge to migrate to EXPERIENCE FRAGMENT STRUCTURE COMPONENT to SITE STRUCTURE COMPONENT.

kindly anyone guide me

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar

Vijayalakshmi_S

MVP

Avatar

Vijayalakshmi_S

MVP

Vijayalakshmi_S
MVP

26-02-2021

Hi @karthick1356,

XF page is created using editable template created out of page component that is inheriting from /libs/cq/experience-fragments/components/xfpage

Site pages are created using editable template created out of page component that is inheriting from core v2 page - core/wcm/components/page/v2/page

If you are trying to include created XF pages as part of site pages, make use of Experience Fragment from General Component Group (has option to include the created XF variation)

Please do let know if you are looking for any specific information in particular.

Answers (2)

Answers (2)

Avatar

Avatar

Umesh_Thakur

MVP

Avatar

Umesh_Thakur

MVP

Umesh_Thakur
MVP

01-03-2021

Hi @karthick1356 ,

In we retail demo site we have one demo structure component at /apps/weretail/components/structure/xfpage path so if you want to create the xf editable template, it will be better to copy it from the we retail and paste it in your project path and then do the necessary change as per your requirement like adding client libs, adding extra config pages an all.

Then you need to create a template type in your project's conf path and then create editable template based on the created template type.

Now you are all set to create xf by allowing template path in the /content/experience-fragments/..... path then you can go ahead with that.

 

Use above created xf with experience fragment core component on page or wherever you want.

 

Hope this will help.

Umesh Thakur

 

Avatar

Avatar

KiranVedantam1992

Avatar

KiranVedantam1992

KiranVedantam1992

26-02-2021

Hi @karthick1356,

 

Experience Fragments are fully laid out content; a fragment of a web page. So it contains components inside it. If I understand your query correctly, you are wanting to use the components that are used inside the XF as separate site structure components.

 

To do that, go to the XF path, Ex: /content/experience-fragments/project/XF-name, check the list of components added there. Select the component that you are looking for and get its sling:resourceType --> path and use it elsewhere.

 

Hope this helps. If not please elaborate on your query.

 

Thanks,

Kiran Vedantam.