Quote from: sharkbait at Jun 21, 2010, 01:42 AM
jasonimani, guess a nested call would work ( it does, just checked it
)
Hi Sharkbait,
That was it...I just realized what I was looking for was: [+content_id+]. It’s an unmentioned placeholder in the EvoGallery documentation.
Unlike the solution above, which is great if you use automatic thumbnail generation, but you also need to fill in every Title tag for each image.
This is method I used to used to grab the thumbnail I generated, and the pagetitle and place it as a title of the image. I could even take it a setup further, and use PHx to determine if a title page exists in Evo, and if not default to the page title.
Here is my code:
[!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=`[+content_id+]` &field=`pagetitle`]]" class="sample" rel="[+content_id+]">[[GetField? &docid=`[+content_id+]` &field=`projectThumbnail`]]</a>
projectGalleryItem:
<a href="[+images_dir+][+filename+]" title="[[GetField? &docid=`[+content_id+]` &field=`pagetitle`]]" class="sample" rel="[+content_id+]"></a>
Thanks again...I would not have been able to figure this out without your (and everyone’s) help. I really appreciate it.