Image Gallery field type example
Image set name: Nature and Food
Image Gallery field type value output examples:
This is a complex example how to use diffrent layouts to output the content:
Gallery style:
Simple list of thumbnails:
{{ gallery }}
Output:Simple list of original image links:
When editing a layout you can double-click on the tag to see the list of possible options.
{{ gallery("link:_original",",") }}
Output:https://joomlaboat.com/images/galleryexample/g41_gallery__original_1.jpg,https://joomlaboat.com/images/galleryexample/g41_gallery__original_2.jpg,https://joomlaboat.com/images/galleryexample/g41_gallery__original_3.jpg,https://joomlaboat.com/images/galleryexample/g41_gallery__original_4.jpg,https://joomlaboat.com/images/galleryexample/g41_gallery__original_5.jpg
Array of thumbnails:
{% set images = gallery("link:",";")|split(';') %}
<ul>
{% for image in images %}
<li>{{ image }}</li>
{% endfor %}
</ul>
Output:- https://joomlaboat.com/images/galleryexample/g41_gallery__esthumb_1.jpg
- https://joomlaboat.com/images/galleryexample/g41_gallery__esthumb_2.jpg
- https://joomlaboat.com/images/galleryexample/g41_gallery__esthumb_3.jpg
- https://joomlaboat.com/images/galleryexample/g41_gallery__esthumb_4.jpg
- https://joomlaboat.com/images/galleryexample/g41_gallery__esthumb_5.jpg
×
