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

Avatar

Avatar

lakshraj4536325

Avatar

lakshraj4536325

lakshraj4536325

05-02-2019

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?

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar

Gaurav-Behl

MVP

Total Posts

1.1K

Likes

226

Correct Answer

281

Avatar

Gaurav-Behl

MVP

Total Posts

1.1K

Likes

226

Correct Answer

281
Gaurav-Behl
MVP

06-02-2019

Check this -

Experience Fragments

Adobe Experience Manager Help | Using AEM Experience Fragments

What kind of dynamic use case(s) do you have? Check if experience fragment variations would cover it?

Answers (1)

Answers (1)

Avatar

Avatar

smacdonald2008

Total Posts

12.7K

Likes

1.4K

Correct Answer

2.3K

Avatar

smacdonald2008

Total Posts

12.7K

Likes

1.4K

Correct Answer

2.3K
smacdonald2008

06-02-2019

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

For example - an image and text, etc:

EFs.png

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.