Hej,
I am trying to optimize my slider:
On another page, I am using ACF with a gallery.
I need the image sizes for the lightbox plugin to work properly.
This setup is working:
Looper Provider:
{{dc:acf:post_field field=“bildergalerie”}}
{{dc:looper:field key=“sizes.slider_small”}}
{{dc:looper:field key=“sizes.slider_full”}}
{{dc:looper:field key=“sizes.slider_full-width”}}
{{dc:looper:field key=“sizes.slider_full-width”}}
New Setup with Parameters.
I would like to use this slider with parameters and the list type.
But I can’t get the needed information out of the system.
Looper Provider:
{{dc:param:listItems}}
In the consumer, I get the url as a string only.
Is there a way to get the information I need with this new setup?
{{dc:looper:field key=“image.src”}}
{
"listItems" : {
"type" : "group[]",
"label" : "Slides",
"itemLabel" : "{{index}}. Slide – ({{typ}})",
"params" : {
"typ" : {
"type" : "choose",
"label" : "Typ",
"initial" : "image",
"options" : [
{ "value" : "image", "label" : "image" },
{ "value" : "video", "label" : "video" },
{ "value" : "icon", "label" : "icon" }
]
},
"image" : {
"type" : "group",
"label" : "Bild",
"noPicker" : true,
"params" : {
"src" : {
"label" : "Quelle",
"type" : "image",
"initial" : ""
},
"alt" : {
"label" : "Alt",
"type" : "textarea",
"initial" : "",
"placeholder" : "Kurze Beschreibung des Bildes"
}
},
"when" : "eq($.listItems.typ, 'image')"
},
"video" : {
"type" : "group",
"label" : "Video",
"noPicker" : true,
"params" : {
"file" : {
"type" : "file",
"label" : "Datei",
"file_types" : ["video/mp4"],
"placeholder" : "MP4-Datei angeben"
}
},
"when" : "eq($.listItems.typ, 'video')"
},
"icon" : {
"type" : "group",
"label" : "Icon",
"noPicker" : true,
"params" : {
"icon-fa" : {
"type" : "fa-icon",
"label" : "Icon",
"initial" : "circle"
},
"color" : {
"label" : "Color",
"type" : "color",
"initial" : "rgb(35, 35, 35)"
}
},
"when" : "eq($.listItems.typ, 'icon')"
},
"headline" : {
"label" : "Überschrift",
"type" : "text",
"initial" : ""
},
"text" : {
"label" : "Text",
"type" : "text-editor",
"initial" : "",
"height" : 1
}
}
}
}
By the way – do you have a documentation for formatting the code in the forum properly?
Looking forward to hearing from you.
Best wishes
Carlo