Sorry for my english.
Now I have a working gallery that works with the Gallery snippet -
https://mirperchatok.ru/catal/perchatki-iz-ispanii.
The source code of this gallery:
<div class="content-conveyor" id="lightgallery">
<div class="item">
<a href="image.jpg" rel="lightbox-group1"><img src="image.jpg" /></a>
<a href="image.jpg" rel="lightbox-group1"><img src="image.jpg.jpg" /></a>
<a href="image.jpg" rel="lightbox-group1"><img src="image.jpg" /></a>
<a href="image.jpg" rel="lightbox-group1"><img src="image.jpg" /></a>
<a href="image.jpg" rel="lightbox-group1"><img src="image.jpg" /></a>
</div>
<div class="item">
<a href="image.jpg" rel="lightbox-group1"><img src="image.jpg" /></a>
<a href="image.jpg" rel="lightbox-group1"><img src="image.jpg" /></a>
<a href="image.jpg" rel="lightbox-group1"><img src="image.jpg" /></a>
<a href="image.jpg" rel="lightbox-group1"><img src="image.jpg" /></a>
<a href="image.jpg" rel="lightbox-group1"><img src="image.jpg" /></a>
</div>
<div class="item">
<a href="image.jpg" rel="lightbox-group1"><img src="image.jpg" /></a>
...
<a href="image.jpg" rel="lightbox-group1"><img src="image.jpg" /></a>
</div>
...
</div>
Snippet call:
<div class="content-conveyor" style="width: 100%;" id="lightgallery">
<div class="item">[[Gallery? &album=`1` &sort=`rank` &dir=`ASC` &thumbTpl=`galItemThumb2`]]</div>
</div>
Chank galItemThumb2:
<a href="[[+image_absolute:pthumb=`q=100`]]" rel="lightbox-group1"><img src="[[+image_absolute:pthumb=`w=150&h=150&zc=C`]]" /></a>
[[+idx:mod=`5`:eq=`4`:then=`</div><div class="item">`]]
If there are a lot of images in the gallery, it becomes inconvenient to sort images. getImages is very good for this.
How to do this in chunk of snippet getImages:
[[+idx:mod=`5`:eq=`4`:then=`</div><div class="item">`]]
?