Hi,
Thanks to Romain for help with php ...
Now I face a problem with caching, I guess
??
To ease understanding, I have created the following test case :
On the page :
http://www.vgd-pinceaux.eu/test.html
I have the code :
7<br/>
[[!Gallery? &thumbWidth=`195` &thumbHeight=`140` &album=`7` &orderby=`date`]]
[[+Gallery]]
8<br/>
[[!Gallery? &thumbWidth=`195` &thumbHeight=`140` &album=`8` &orderby=`date`]]
[[+Gallery]]
9<br/>
[[!Gallery? &thumbWidth=`195` &thumbHeight=`140` &album=`9` &orderby=`date`]]
[[+Gallery]]
10<br/>
[[!Gallery? &thumbWidth=`195` &thumbHeight=`140` &album=`10` &orderby=`date`]]
[[+Gallery]]
I modified dirtily Shaun’s chunck for default output template to call Romain’s modifiedOn snippet :
<div class="[[+cls]]">
<a href="[[+linkToImage:if=`[[+linkToImage]]`:is=`1`:then=`[[+image_absolute]]`:else=`[[~[[*id]]?
&[[+imageGetParam]]=`[[+id]]`
&[[+albumRequestVar]]=`[[+album]]`
&[[+tagRequestVar]]=`[[+tag]]` ]]`]]">
<img class="[[+imgCls]]" src="[[+thumbnail]]" alt="[[+name]]" />
</a>
<p>
<!-- this should not be there, but otherwise, variables don't get initialized -->
assets/components/gallery/files/[[+gallery.id]]/[[+filename]]
<!-- this is the call to Romain's snippet -->
[[!modifiedOn?
&file=`assets/components/gallery/files/[[+gallery.id]]/[[+filename]]`
&format=`F d Y H:i:s`
]]</p>
</div>
Two problems that seems relative to caching :
Call to modifiedOn does not work if [[+gallery.id]] and [[+filename]] are not called.displayed before the snippet.
Gallery number (gallery.id) is not changed with each subsequent Gallery call resulting in "You must define a valid file" message after the first call.
I must have done something wrong ?
Any idea about what the problem is ?
Thanks
Philippe