Slider photos
Here is how to get all the photos from the current item (if it has photos in the module).
<!-- This code example will take the ratio
"Panoramic" and resize the photo to
maximum 800px width -->
#$loop|{{item.photos}}|{p}| $#
<img src="{resizeimg(p.url_panoramic,800)}" alt="{p.alt}" />
#$/loop|{{item.photos}}|{p}| $#
If you want to take all photos starting from a specific index, you can use {loop_index}
and a if
statement
#$loop|{{item.photos}}|{p}| $#
{if=" '{loop_index}' > 1 "}
<img src="{resizeimg(p.url_panoramic,500)}" alt="{p.alt}" />
{/if}
#$/loop|{{item.photos}}|{p}| $##
Last updated