The testimonial templates use a JSON source as banner data. Its form is:
The most common way to use it would be the marker-jason macro , where {tmpl-root is files, template testimonial, and repository-file would be the location of the JSON file.
In the example will be using the testimonials.json file, located at this context's repository.
{@ marker-json:files:testimonial:*/testimonials.json} you get:
{@ marker-json:files:vtestimonial:*/testimonials.json} you get:
{
"name" : "slider",
"minHeight" : "150px",
"testimonials" : [
{
"imageLink" : "testimonials/_internal/repository/face1.png",
"imageClass" : "small circular",
"text" : "Some testimonial",
"textClass" : "grey medium",
"name" : "John Doe",
"line1" : "Any text",
"line2" : "Any text",
"line3" : "Any text"
},
{
"imageLink" : "testimonials/_internal/repository/face2.png",
"imageClass" : "small circular",
"text" : "Some other testimonial",
"textClass" : "grey medium",
"name" : "Jane Smith",
"line1" : "Any text",
"line2" : "Any text",
"line3" : "Any text"
}
]
}
| English | 07/31/26 17:21 | Lluís Turró Cutiller | |
| English | 08/04/26 10:29 | Lluís Turró Cutiller |