Hi, I’m fetching random images on my frontpage and when clicked one are taken to the gallery for that image. However I’d like to replace the default "Click to zoom" text from the template chunk with a "click to go to [gallery.name]."
However, I can’t find any placeholders that have the name for the gallery the picture are from - the closest I’ve found is "[+maxigallery.picture.title:htmlent+]" which will only return the name of the calling page, not the name of the page of the gallery.
Galleries are created by front-end users as according to the wiki on creating front-end galleries.
My front-page
snippet-call is
[[MaxiGallery? &gal_query_ids=`all` &order_by=`random` &pics_per_row=`3` &limit=`3` &max_thumb_size=`100 ` &galleryPictureTpl=`linkToGallery`]]
and my
linkToGallery chunk is the same as galleryPictureTpl, only with link to gallery
<a href="[~[+maxigallery.picture.gal_id+]~]">
instead of image
<a href="[+maxigallery.picture_link_url+]">
This is the image link
<img src="[(base_url)][+maxigallery.path_to_gal+]tn_[+maxigallery.picture.filename+]" class="thumbnail reflect" title="[+maxigallery.picture.title:htmlent+] [+maxigallery.strings.click_to_zoom+]" alt="[+maxigallery.picture.title:htmlent+] [+maxigallery.strings.click_to_zoom+]" />
So, is there something I can replace
[+maxigallery.strings.click_to_zoom+] with such that the title contains the name of the gallery the picture is from?