Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

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

Avatar

Avatar
Level 1
lakshraj4536325
Level 1

Likes

0 likes

Total Posts

1 post

Correct Reply

0 solutions
View profile

Avatar
Level 1
lakshraj4536325
Level 1

Likes

0 likes

Total Posts

1 post

Correct Reply

0 solutions
View profile
lakshraj4536325
Level 1

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
Give back 300
MVP
Gaurav-Behl
MVP

Likes

243 likes

Total Posts

1,145 posts

Correct Reply

281 solutions
Top badges earned
Give back 300
Give Back 50
Give Back 5
Give Back 3
Give Back 25
View profile

Avatar
Give back 300
MVP
Gaurav-Behl
MVP

Likes

243 likes

Total Posts

1,145 posts

Correct Reply

281 solutions
Top badges earned
Give back 300
Give Back 50
Give Back 5
Give Back 3
Give Back 25
View profile
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
Validate 25
Level 10
smacdonald2008
Level 10

Likes

1,406 likes

Total Posts

12,671 posts

Correct Reply

2,278 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give back 900
Give back 600
View profile

Avatar
Validate 25
Level 10
smacdonald2008
Level 10

Likes

1,406 likes

Total Posts

12,671 posts

Correct Reply

2,278 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give back 900
Give back 600
View profile
smacdonald2008
Level 10

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.