Hi all
How can I pass the image title from a gallery, to the target picture viewer page?
This is my gallery call:
<p>
[!MaxiGallery? &display=`normal` &pics_per_row=`5` &big_img_linkstyle=`lightboxv2` &max_thumb_size=`110` &max_pic_size=`600` &thumb_use_dropshadow=`1` &thumb_shadow_bgcolor=`222222` &pic_use_dropshadow=`1` &pic_shadow_bgcolor=`222222` &keep_bigimg=`1` &picture_target=`71`!]</p>
and this is the picture_target call:
<p>[!MaxiGallery? &display=`normal` &big_img_linkstyle=`lightboxv2` &keep_bigimg=`1` &is_target=`1`!]</p>
and what I’d like to do is have the resource longtitle look something like:
Viewing Image - [+maxigallery.picture.title+]
but this just gives a blank - I’m betting I’m missing something obvious......
Many thanks
Daz
formerly sumodaz on here!
I *think* I have answered my own question - and the answer is no because the placeholders only exist during the snippet call itself and are not available outside of that call. Is that correct?
I have got round it by creating a custom pictureTpl template and it works pretty well!
:D
formerly sumodaz on here!
Yes that is correct.. The only way to get it to the page title would be to run maxigallery in there with custom template to output just the picture title.. but that’s quite some processing overhead for just page title..
"He can have a lollipop any time he wants to. That's what it means to be a programmer."
Indeed. Thanks doze
formerly sumodaz on here!