Experience Fragments | Community
Skip to main content
New Participant
Oct 11, 2018 5:20 AM UTC
Solved

Experience Fragments

Is there a way to create experience fragments programatically? We have a custom template to create experience fragments. I used PageManager API to create a page out of this template but it did not come up like a experience fragment with a variation.

i could find a API for content fragments which is  ContentFragmentManager, Is there anything similar for experience fragments

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
arunpatidar
arunpatidarAccepted solution
New Participant
Oct 11, 2018 7:10 AM UTC

Hi,

There is no API to create XF with variation, you can create default variation node again using PageManager API.

Though there are APIs to fetch xf details

com.adobe.cq.xf ("The Adobe AEM Quickstart and Web Application.")

Arun Patidar

4 replies

Level 2
Jun 10, 2019 10:58 AM UTC

Is there any solution / alternative to create experience fragments programmatically, which will help for bulk creation of experience fragment ( Team site  to AEM migration use case which consist of thousands of files) ?

Or will have to create experience fragment manually ?

Translate
arunpatidar
arunpatidarAccepted solution
New Participant
Oct 11, 2018 7:10 AM UTC

Hi,

There is no API to create XF with variation, you can create default variation node again using PageManager API.

Though there are APIs to fetch xf details

com.adobe.cq.xf ("The Adobe AEM Quickstart and Web Application.")

Translate
Arun Patidar
New Participant
Oct 11, 2018 6:18 AM UTC

When we create a experience fragment using HTML or we.retail template it creates a default variation ( 2 level hierarchy). But when we use pagemanager API it creates a page and not a experience fragment.

Translate
arunpatidar
New Participant
Oct 11, 2018 5:33 AM UTC

Hi,

Experience Fragments are the pages, so you can use PageManager and Page API to create experience fragments.

PageManager ("The Adobe AEM Quickstart and Web Application.")

Translate
Arun Patidar