The banner 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 can be bannerImage or bannerCard, and repository-file would be the location of the JSON file.
In the example will be using the banners.json file, located at this context's repository.
{@ marker-json:files:bannerImage:*/banners.json} you get:
{@ marker-json:files:bannerCard:*/banners.json} you get:
{
"name" : "slider",
"minHeight" : "400px",
"banners" : [
{
"imageLink" : "banners/_internal/repository/elementals.jpg",
"background" : "#00000066",
"color" : "#fff",
"header" : "Some header",
"meta" : "Sub header",
"description" : "Lorem Ipsum is simply dummy text of the printing and typesetting industry...",
"action" : "Visit...",
"link" : "#",
"subaction" : "Or visit...",
"sublink" : "#"
},
{
"imageLink" : "banners/_internal/repository/emotion-ocean.jpg",
"background" : "#ffffff66",
"color" : "#000",
"header" : "Some other header",
"meta" : "Some header support",
"description" : "Lorem Ipsum is simply dummy text of the printing and typesetting industry...",
"action" : "Visit...",
"link" : "#"
}
]
}
| English | 07/15/20 10:42 | Lluís Turró Cutiller | |
| English | 04/29/21 10:28 | Lluís Turró Cutiller |