migrate to EXPERIENCE FRAGMENT STRUCTURE COMPONENT to SITE STRUCTURE COMPONENT | Community
Skip to main content
Level 4
February 26, 2021
Solved

migrate to EXPERIENCE FRAGMENT STRUCTURE COMPONENT to SITE STRUCTURE COMPONENT

  • February 26, 2021
  • 3 replies
  • 1682 views

Hi all,

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

kindly anyone guide me

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Vijayalakshmi_S

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.

3 replies

Kiran_Vedantam
Community Advisor
Community Advisor
February 26, 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.

Level 4
February 26, 2021
Hi KiranVedantam1992, i was trying to migrate page rendering component from component/structure/nameOfComponent. this page rendering component is created for XF. the challenge here i need migrate this page rendering component to site rending componet so that i can create template using that and also page from that template.
Vijayalakshmi_S
Vijayalakshmi_SAccepted solution
Level 10
February 26, 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.

Level 4
February 28, 2021

Vijayalakshmi_S, there was a page rendering component created for XF Template. my requirement is if can reuse that page rendering component while creating editable template for Site. if so, how to do that?

Umesh_Thakur
Community Advisor
Community Advisor
March 1, 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