Is there any tutorial or any documentation on how to create an Experience Fragments template as in the following screenshot. (Those are given Templates to use in order to create an experience fragments). If we want to create our own project specific templates how to create it? Can anyone point me in right direction to achieve this?
Like Editable templates, can we create a multiple Experience Fragments Templates or just we use only one?
If we do like that we would see our newly created template under Experience Fragments from the Global Navigation and it would act as a normal editable template. But when we look at the We-Retail project it has following changes as well. 1. xfPage page component and they did changed the sling:resourceType pointing to xfPage page component.
Then only we would see this Variation icon.
Add to your point, I think after creating the normal editable template using empty-page template type, then allowing this path under /content/experience-fragments allowedTeplate property we also need to do these 2 changes as well I think. If you have any idea about this?.
Step1: We need to create a separate template for Experience fragments under "conf" folder and adding superType as cq/experience-fragments/components/xfpage do necessary changes ... (in our case we overlay xfpage component did some changes as per our requirement). like how we-retail project did as shown in the bellow screenshot.
These 2 changes would be enough
After that you can browse here and you can create experience fragment by selecting experience fragment template.
Can you please let me know what are the 2 additional changes you are referring to here.
One is adding superType as cq/experience-fragments/components/xfpage to the page component of my editable component.
What is the second change?