<![CDATA[ Support/Comments for getImages - My Forums]]> https://forums.modx.com/thread/?thread=81713 <![CDATA[Re: Support/Comments for getImages]]> https://forums.modx.com/thread/81713/support-comments-for-getimages?page=10#dis-post-557261
Quote from: misterio at Mar 07, 2018, 05:30 PM
No. I want to move from the snippet Gallery to getImages. As I said above - pictures in a folder are easier to sort if there are a lot of them, as in my case.

The snippet Gallery I describe as an implementation example.

I configured getImages, it works fast. but I need to insert code "<div class="item">" after every 5 pictures.</div>
]]>
jerry325 Mar 08, 2018, 01:33 AM https://forums.modx.com/thread/81713/support-comments-for-getimages?page=10#dis-post-557261
<![CDATA[Re: Support/Comments for getImages]]> https://forums.modx.com/thread/81713/support-comments-for-getimages?page=10#dis-post-557253
The snippet Gallery I describe as an implementation example.

I configured getImages, it works fast. but I need to insert code "</div><div class="item">" after every 5 pictures.]]>
misterio Mar 07, 2018, 05:30 PM https://forums.modx.com/thread/81713/support-comments-for-getimages?page=10#dis-post-557253
<![CDATA[Re: Support/Comments for getImages]]> https://forums.modx.com/thread/81713/support-comments-for-getimages?page=10#dis-post-557247 jerry325 Mar 07, 2018, 05:02 PM https://forums.modx.com/thread/81713/support-comments-for-getimages?page=10#dis-post-557247 <![CDATA[Re: Support/Comments for getImages]]> https://forums.modx.com/thread/81713/support-comments-for-getimages?page=10#dis-post-557246 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">`]]

?
]]>
misterio Mar 07, 2018, 04:22 PM https://forums.modx.com/thread/81713/support-comments-for-getimages?page=10#dis-post-557246
<![CDATA[Re: Support/Comments for getImages]]> https://forums.modx.com/thread/81713/support-comments-for-getimages?page=10#dis-post-557245 ]]> jerry325 Mar 07, 2018, 03:51 PM https://forums.modx.com/thread/81713/support-comments-for-getimages?page=10#dis-post-557245 <![CDATA[Re: Support/Comments for getImages]]> https://forums.modx.com/thread/81713/support-comments-for-getimages?page=10#dis-post-557221
Quote from: misterio at Mar 06, 2018, 05:56 PM
Quote from: jerry325 at Mar 06, 2018, 05:46 PM
I'm not sure I know what you're asking? I'm afraid I'm a bit slow this morning. When you say "ordinal number" would that be a number you have given the photo, or something in the metadata?

Quote from: misterio at Mar 06, 2018, 04:44 PM
Hello! I need to get ordinal number of the picture in placeholder.
Analog of placeholder [[+idx]] in Gallery snippet.

Any ideas?
Thanks in advance!

the index of each image item
]]>
jerry325 Mar 06, 2018, 06:04 PM https://forums.modx.com/thread/81713/support-comments-for-getimages?page=10#dis-post-557221
<![CDATA[Re: Support/Comments for getImages]]> https://forums.modx.com/thread/81713/support-comments-for-getimages?page=10#dis-post-557220 Quote from: jerry325 at Mar 06, 2018, 05:46 PM
I'm not sure I know what you're asking? I'm afraid I'm a bit slow this morning. When you say "ordinal number" would that be a number you have given the photo, or something in the metadata?

Quote from: misterio at Mar 06, 2018, 04:44 PM
Hello! I need to get ordinal number of the picture in placeholder.
Analog of placeholder [[+idx]] in Gallery snippet.

Any ideas?
Thanks in advance!

the index of each image item]]>
misterio Mar 06, 2018, 05:56 PM https://forums.modx.com/thread/81713/support-comments-for-getimages?page=10#dis-post-557220
<![CDATA[Re: Support/Comments for getImages]]> https://forums.modx.com/thread/81713/support-comments-for-getimages?page=10#dis-post-557219
Quote from: misterio at Mar 06, 2018, 04:44 PM
Hello! I need to get ordinal number of the picture in placeholder.
Analog of placeholder [[+idx]] in Gallery snippet.

Any ideas?
Thanks in advance!
]]>
jerry325 Mar 06, 2018, 05:46 PM https://forums.modx.com/thread/81713/support-comments-for-getimages?page=10#dis-post-557219
<![CDATA[Re: Support/Comments for getImages]]> https://forums.modx.com/thread/81713/support-comments-for-getimages?page=9#dis-post-557218 Analog of placeholder [[+idx]] in Gallery snippet.

Any ideas?
Thanks in advance!]]>
misterio Mar 06, 2018, 04:44 PM https://forums.modx.com/thread/81713/support-comments-for-getimages?page=9#dis-post-557218
<![CDATA[Re: Support/Comments for getImages]]> https://forums.modx.com/thread/81713/support-comments-for-getimages?page=9#dis-post-552788 Quote from: dinglestein at Jul 25, 2017, 10:14 PM
Thanks Jerry - you da bomb! smiley
Not sure about that. I just made something I wanted and then thought, why not see if anyone else was interested. Some were and even had some great ideas how to make it better. The Modx community is da bomb!]]>
jerry325 Jul 26, 2017, 12:26 AM https://forums.modx.com/thread/81713/support-comments-for-getimages?page=9#dis-post-552788