If there is a Macro you want i´d suggest to add a macro parameter to your macro, of the type Multiple Media Picker. Then select the images you´d like to display, then in you macro you get the id:s of your selected images like so:
var mediaIds = Model.MacroParameters["mediaIds"];
Tip: Take a look at the macro snippet for the macro Gallery and you get a pretty good idea of how to create that type of macro.
Another way if doing it is to instead of creating a macro you create a partialview. And in that partialview you fetch the images from your doctype that you´d like to display:
Image Slider - Macro
Hi
I am new and struggling badly.
Trying to create a macro in order to pull the images I have selected into my slider.
Doctypes - Slider with child doctype Slider Image
Here I am calling the macro :
How will I create the macro in order to pull the images into the slider?
Please advise
Hi Willem.
If there is a Macro you want i´d suggest to add a macro parameter to your macro, of the type Multiple Media Picker. Then select the images you´d like to display, then in you macro you get the id:s of your selected images like so:
Tip: Take a look at the macro snippet for the macro Gallery and you get a pretty good idea of how to create that type of macro.
Another way if doing it is to instead of creating a macro you create a partialview. And in that partialview you fetch the images from your doctype that you´d like to display:
Partialview example:
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.