How to Create an experience fragment with components to show dynamic data on each page



Hi All,

I have a requirement of having a few components on the n pages which are common but the content of the component is dynamic for each page. Can you help me with a solution on how to create an experience fragment with component and the content for these should be dynamic. how can i achieve this?

Answers (1)

Answers (1)



Experiecne Fragments -  once they are created - they will typically contain the same data.

For example - an image and text, etc:


If you want dynamic components - you should look at programming HTL with Sling Models. That way, you can use Java business logic to create dynamic content.