Hi,
Interesting idea. I think what might be a more general solution, though, would be to allow each snippet call to (optionally) specify a thumbnail prefix to use, so you
could have two sets of thumbnails. Maybe something like:
[!AutoGallery?blah...&tnprefix=`tn_`!]
<blah>
[!AutoGallery?blah..&tnprefix=`tn2_`!]
Then you’s have three sets of files in the directory: filename.jpg, tn_filename.jpg, and tn2_filename.jpg and each snippet call could fish out its own ones.
The principle downside is that it makes the file system contents more messy. I’m not sure how people feel about this? My attitude has always been that no-one sees the filesystem contents so it doesn’t matter very much, but given how upset everyone got when it doubled the extension for the thumbnails...
It
is possible to auto-detect that this is the second (or subsequent) call to AutoGallery on this page, if people really would prefer to let it work it out. I could even have it auto-detect whether the thumbnail size arguments had changed, but that might be considered overkill. Hence it appeals to me, so I might implement that too
Anyway, I’ll have a go at implementing this a bit later.
Ramsay