Experience Fragments | Community
Skip to main content
New Member
October 11, 2018
Solved

Experience Fragments

  • October 11, 2018
  • 4 replies
  • 2533 views

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.
Best answer by arunpatidar

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.")

4 replies

arunpatidar
Community Advisor
Community Advisor
October 11, 2018

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.")

Arun Patidar
New Member
October 11, 2018

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.

arunpatidar
Community Advisor
arunpatidarCommunity AdvisorAccepted solution
Community Advisor
October 11, 2018

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
June 10, 2019

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 ?