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.
![Convert to XF Convert to XF](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg0GRG3T9zDX9ZFCr07TeHsKc5fK0IhN6EkgstxYdK37ZGu4OGQUKoHqiXiji-ouuIWZ5EwiIhnCdFi0lUBb_UEcYanGWI7Gh9Y0MRuE_pSYojzCt1I4nHh9i665tQ5_Jw1bnDnkJjhLHE/w400-h48/XF.png)
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