Ask AI
Hi! Ask me anything

Testimonials

The testimonial templates use a JSON source as banner data. Its form is:

  • name
  • minHeight
  • testimonials (array of:)
    • imageLink
    • imageClass
    • text
    • textClass
    • name
    • line1
    • line2
    • line3

The most common way to use it would be the marker-jason macro {@marker-json:tmpl-root:template:repository-file}, 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.

With {@marker-json:files:testimonial:*/testimonials.json} you get:

"Some testimonial"
John Doe
Any text
Any text
Any text
"Some other testimonial"
Jane Smith
Any text
Any text
Any text

With {@marker-json:files:vtestimonial:*/testimonials.json} you get:

"Some testimonial"
John Doe
Any text
Any text
Any text
"Some other testimonial"
Jane Smith
Any text
Any text
Any text

JSON file

{
  "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"
    }
  ]
} 
English07/31/26 17:21Lluís Turró Cutiller
English08/04/26 10:29Lluís Turró Cutiller