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

Product specific rendering of page

Avatar

Avatar
Validate 1
Level 2
Adilmo
Level 2

Likes

6 likes

Total Posts

65 posts

Correct Reply

2 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 1
Affirm 1
View profile

Avatar
Validate 1
Level 2
Adilmo
Level 2

Likes

6 likes

Total Posts

65 posts

Correct Reply

2 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 1
Affirm 1
View profile
Adilmo
Level 2

05-03-2019

Hi All,

We are trying to design an AEM front end based website.

Can the page while loading (based on some input parameter -- product code etc) dynamically load different template ?

For the same page --- lets say products details page. We need to render different page templates. Is there any pattern to achieve this in AEM ??

Replies

Avatar

Avatar
Validate 1
MVP
Albin_Issac
MVP

Likes

105 likes

Total Posts

118 posts

Correct Reply

33 solutions
Top badges earned
Validate 1
Ignite 1
Give Back 5
Give Back 3
Give Back 10
View profile

Avatar
Validate 1
MVP
Albin_Issac
MVP

Likes

105 likes

Total Posts

118 posts

Correct Reply

33 solutions
Top badges earned
Validate 1
Ignite 1
Give Back 5
Give Back 3
Give Back 10
View profile
Albin_Issac
MVP

29-04-2019

My perspective this can be achieved as below

1. Create product type specific templates - eg. eBook, book etc

2. Add the the required components to the template(components may vary based on the type)

3. The components render the dynamic product data based on the product id passed in the URL

Regards

Albin I

Avatar

Avatar
Establish
Level 6
antoniom5495929
Level 6

Likes

90 likes

Total Posts

212 posts

Correct Reply

39 solutions
Top badges earned
Establish
Give Back 50
Give Back 5
Give Back 3
Give Back 25
View profile

Avatar
Establish
Level 6
antoniom5495929
Level 6

Likes

90 likes

Total Posts

212 posts

Correct Reply

39 solutions
Top badges earned
Establish
Give Back 50
Give Back 5
Give Back 3
Give Back 25
View profile
antoniom5495929
Level 6

30-04-2019

Hi,

you cannot make this choose by using a sightly inclusion based on the product code into the base template?

Thanks,

Antonio

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

30-04-2019

Look at the We Retail example site and notice how that site handles different products - each one is its own separate page - based on the same editable template. That is how to handle products when using AEM.

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

30-04-2019

See this - all product pages based on Hero Editable Template - this reflects best practice and the way you should constuct your AEM sites to handle different products. Not to try and dynamically change the template itself:

WeRe.png