Expand my Community achievements bar.

SOLVED

Experience Fragments Use-Cases / Real-world examples

Avatar

Level 5

Hello, 

 

I went through lot of the XF documentation and I understand how to create it, etc. But I'm still not fully sure when and where it'll be a good idea to use it.

 

Anyone have any examples of XF usage in their projects or has thoughts on use cases where XF would be a good solution to use?

 

Thanks for any replies on this.

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi,

An example of experience fragment could be Header and Footer.

 To understand how to decide whether to use XF or use components directly on the page?

Wherever you have common content e.g. social media, pre-footer, legal, etc. within pages. you can create as an experience fragment and later use it in the page using XF.

 

Thanks

Arun



Arun Patidar

View solution in original post

6 Replies

Avatar

Community Advisor

We have used it in  our project while integrating aem with target.

Experience fragments are exported to target where they are used as personalized content.

Avatar

Correct answer by
Community Advisor

Hi,

An example of experience fragment could be Header and Footer.

 To understand how to decide whether to use XF or use components directly on the page?

Wherever you have common content e.g. social media, pre-footer, legal, etc. within pages. you can create as an experience fragment and later use it in the page using XF.

 

Thanks

Arun



Arun Patidar

Avatar

Level 5

Thanks. But can't things like header n footer be implemented with existing features like iparsys, design dialogs, etc?

Are there any examples where only XFs would be a good feature to use?

Avatar

Community Advisor

Let's assume you have 5 templates and you are using iparsys(which does not work with dynamic template) or design dialog to implement header and footer. then you need to author header and footer 5 times.

But if you will use XF, then you just create once and refer in all 5 templates.

 

The idea is XF is just like a snippet of the page (not full page), and you can use that snippet multiple places instead of authoring multiple times.

Believe me, it is a very effected and greate feature.

 

And XF core components has multilingual support(automatically point to the correct language XF)



Arun Patidar

Avatar

Community Advisor

Iparsys doesn't work with template editor that's where we require experience fragments.

Avatar

Level 1

Plan on using Content Fragments for disclaimers on our financial site.  Probably end up using Content Fragments instead of XF since we won't need styling.   Variations will help tailor the disclaimers depending on content and audience, and still provide one spot for legal to make updates if needed that will update the entire site.