Experience Fragments

murali_deloitte 10-10-2018

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

Accepted Solutions (1)

Accepted Solutions (1)

Answers (3)

Answers (3)

chetanm34936994 10-06-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 ?

murali_deloitte 10-10-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.