Experience fragments are mainly used for re-usability purpose.
If I want to add a component with same content in multiple
places then by using experience fragments we can achieve it.
In Short:
Author once and use in multiple places in Pages.
The experience Fragments are created under content/experience-fragments.
Creating an Experience Fragment(XF)
XF can be created in 2 ways.
1st Way:
- Navigate to Experience fragments --> Click on Create --> Create Experience Fragment --> Select Experience Fragment template --> Enter Title --> Click on Create Button.
- Add the required components on to the created XF.
- Navigate to the Page, where you need to author the content on specific Page.
- Add experience-fragment component and give the Path of xf.
2nd Way:
Assume that a component have been already added on the Page. Now you can convert that component to XF by clicking on convert to experience Button as shown in below image.

After clicking on that Button Below screen will be shown. Fill all the fields required and save the dialogue. Now the added content will be converted to XF.
Comments
Post a Comment