Quote from: singaii at Sep 18, 2013, 01:03 PMhi,
trying to work with getimages with modx revolution 2.2.8 but i cant figure how template (&getImages_Tpl) works and what it contain
i try [[!getImages? &getImages_Folder=`images/gallerie/team/` &getImages_Tpl =`GalerieRowTpl` &getImages_Ext =`*.jpg,*.png`&getImages_Limit =`6`&getImages_Offset =`8`&getImages_Width =`150`&getImages_Height=`100`&getImages_Border=`2`&getImages_Class =`img`]]
but it's doing nothing
i have getfolder and getpage installed
can you tell me how to manage that ?
thanks.
This is what I use for my getImages_Tpl
<div class="photos">
<a href="[[+imgLink]]" target="_blank">
<img title="[[+image]]" src="[[+path]].thumbs/lr_[[+imgFile]]" alt="[[+imgLink]]" width="[[+width]]" height="[[+height]]" />
</a>
</div>
The first line is a link to open a new page with the full sized image.
The next actually grabs the image thumbnail using the image name that it collected from the full sized image folder and since all my thumbnails are in a hidden subfolder called .thumbs and have a prefix of lr_ it adds this so the path is correct. However I see that you are not using a thumbnail folder so yours should be
<div class="photos">
<a href="[[+imgLink]]" target="_blank">
<img title="[[+image]]" src="[[+imgLink]]" alt="[[+imgLink]]" width="[[+width]]" height="[[+height]]" />
</a>
</div>