Dynamically Create Design in Recommendation

Avatar

Avatar
Validate 1
Level 1
glenng91024237
Level 1

Likes

0 likes

Total Posts

3 posts

Correct reply

0 solutions
Top badges earned
Validate 1
View profile

Avatar
Validate 1
Level 1
glenng91024237
Level 1

Likes

0 likes

Total Posts

3 posts

Correct reply

0 solutions
Top badges earned
Validate 1
View profile
glenng91024237
Level 1

27-06-2017

Hi,

Is there a way to make HTML dynamic? I have a requirements to display 50 contents based on Recommendation. But instead of writing it 50 times, is there a way like "loop" to iterate on all recommended content?

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Validate 10
Level 10
ParitMittal
Level 10

Likes

93 likes

Total Posts

817 posts

Correct reply

349 solutions
Top badges earned
Validate 10
Validate 1
Boost 50
Boost 5
Boost 3
View profile

Avatar
Validate 10
Level 10
ParitMittal
Level 10

Likes

93 likes

Total Posts

817 posts

Correct reply

349 solutions
Top badges earned
Validate 10
Validate 1
Boost 50
Boost 5
Boost 3
View profile
ParitMittal
Level 10

28-06-2017

Hi ,

You can use Apache Velocity engine to write Templates.Use the open-source Velocity design language to customize recommendation designs.

Information about Velocity can be found at http://velocity.apache.org.

All Velocity logic, syntax, and so on can be used for a recommendation design. This means that you can create for loops, if statements, and other code using Velocity rather than JavaScript

Regards

Parit

Answers (1)

Answers (1)

Avatar

Avatar
Validate 1
Level 1
glenng91024237
Level 1

Likes

0 likes

Total Posts

3 posts

Correct reply

0 solutions
Top badges earned
Validate 1
View profile

Avatar
Validate 1
Level 1
glenng91024237
Level 1

Likes

0 likes

Total Posts

3 posts

Correct reply

0 solutions
Top badges earned
Validate 1
View profile
glenng91024237
Level 1

09-07-2017

Thanks!

I have a followup question, what if it only returns 3 items, can i add a link that will cover unused tiles?

To give you a background, on page load Recommendation will display 5 tiles per carousel (see attached files).

Sample of Reco with less than 5 reco 

incomplete reco.PNG

Sample Reco with 5 items

with complete reco.PNG