Hi,
Does anyone know of a way to get the gallery id within EvoGallery? There’s no placeholder for the gallery id that could be used inside an item template? What about using PHx to strip the [+images_dir+] so only the ID is left?
If you need more context:
I have a single page portfolio website. Within MODx there is the homepage, and a container called "Projects." With in projects are several pages for each project. I’m trying to use a combo of Ditto, EvoGallery & GetField to automatically grab the document title & a image TV with a manually generated thumbnail from the appropriate document within the "projects" container.
I can’t use [[GetField? &docid=`[*id*]` &field=`pagetitle`]] because it just returns the value of the homepage, where the ditto call is being made.
Here’s the setup if you need even more context:
The ditto call on the single portfolio page:
[!Ditto? &startID=`2` &tpl=`projectsTemplate` &orderBy=`ASC`!]
projectsTemplate:
<div class="example">
[[EvoGallery? &docId=`[+id+]` &display=`images` &type=`simple-list` &itemTpl=`projectGalleryItem` &itemTplFirst=`projectGalleryItemFirst` &sortBy=`sortorder`]]
</div>
projectGalleryItemFirst:
<a href="[+images_dir+][+filename+]" title="[[GetField? &docid=`[*id*]` &field=`pagetitle`]]" class="sample" rel="mm"><img src="[+thumbs_dir+][+filename+]" alt=""/></a>
projectGalleryItem:
<a href="[+images_dir+][+filename+]" title="[+title+]" class="sample" rel="mm"></a>
The purpose behind all this madness is so I can create my own thumbnail, and use the pagetitle field to automatically name & group photos, instead of having to fill in each field with Evo.
Thanks for your help!