Now this is the chunk template, thad displays thumbnails. folders are displayed with a folder image, and resources (not folders) are displayed with resource image put there through Gallery ImageTV., in the comments there are various attempts to process the ImageTV output, and the snippets there get Gallery ID, or path, or image name etc -
The Chunk tpl (fragment):
<li class="modulesquare">
[[+isfolder:is=`1`:then=`
<div class="thumbnail modfolder">
<a href="[[~[[+id]]]]"><img class="thumbpic" src="assets/layoutimages/folderdesktop.png" width="200" height="100" alt="folder" title="[[+description]] " data-toggle="tooltip"></a>
<h4>[[+pagetitle]]</h4>
<p style="height: 2em; margin-bottom: 2em;">[[+description]]</p>
<a href="[[~[[+id]]]]" title="wyświetl karty folderu [[+pagetitle]] " class="btn btn-primary btn-small" data-toggle="tooltip">Wejdź do folderu <i class="icon-folder-close icon-white"></i></a>
</div>
`:else=`
<div class="thumbnail">
<a href="[[+tv.url]]" target="_blank">
<img class="thumbpic" src="[[getPicSrc? &imageTV=`[[+tv.moduleImage]]`]]" alt="[[+pagetitle]]" title="[[+tv.browsers]]" data-toggle="tooltip" width="200" height="100" />
<!--//
[[getPicId? &imageTV=`[[+tv.moduleImage]]`]]
[[getPicSrc? &imageTV=`[[+tv.moduleImage]]`]]
[[getPicName? &imageTV=`[[+tv.moduleImage]]`]]
well: [[getPicNameWell? &imageTV=`[[+tv.moduleImage]]`]]
<img src="[[phpthumbof ? &input=`IT/assets/gallery/1/[[getPicNameWell? &imageTV=`[[+tv.moduleImage]]`]]` &options=`w=200&h=100&zc=1`]]" alt="[[+pagetitle]]" title="[[+tv.browsers]]" data-toggle="tooltip" />
//-->
</a>
now:
- pic ID gets good ID - but when it is passed to GalleryItem - all images are like the first one
- pic SRC gets the name of the image + path - it works directly in <img src... so the path is correct but it is not the effect I want
- pic Name is just the filename without extension - surprisingly this repeats also the first picture name generated through all entries
- pic Name well uses some tricks to combine image ID (working well if not used in GalleryItem) with the path extracted from getPicSRC. The path and image name are always correct but yet again you cannot pass the output into phpthumbof (generated source shows just empty space where phpthumbof generated img should be.