Community @ The Turning Gate

Support community for TTG plugins and products.

NOTICE

The Turning Gate's Community has moved to a new home, at https://discourse.theturninggate.net.

This forum is now closed, and exists here as a read-only archive.

  • New user registrations are disabled.
  • Users cannot create new topics.
  • Users cannot reply to existing topics.

You are not logged in.

#1 2017-01-14 00:06:49

rolf
Member
From: Rheinbach, Germany
Registered: 2014-10-18
Posts: 14

adding functionality to image caption on single image page

I am about to relaunch a clients website from TTG CE4 to Backlight.

In TTG CE4 a little hack implemented the mailto functionality inside each image caption.
please have a look at the following page:
http://www.koerner-kunst.de/galleries/d … single.php
Below the image you see the mailto named: "Anfragen zum Bild"

This was implemented by changing template_single.php in ttg-be/templates/gallery/final-gallery/

<?php } ?><?php if ($photo->hasMetadata('image_caption')) { ?>	<?php echo $photo->getMetadata('image_caption'); ?><?php } ?>	<a href="mailto:koerner.kunst.tmp@gmx.de?Subject=Anfragen zum Bild: <?php echo urlencode(ALBUMTITLE)?>&amp;Body=<?php echo urlencode(ALBUMTITLE)?>%0D%0A<?php echo urlencode(CURRENTPAGEURL)?>" target="_blank" title="Anfragen zum Bild"><strong>Anfragen zum Bild</strong></a></p>

Now I am trying to do the same in backlight, but I am stucked.
Any suggestion how to implement the same in backlight?

Thank you very much.
Rolf

Offline

#2 2017-01-14 16:16:24

Matthew
Administrator
From: San Francisco, CA
Registered: 2012-09-24
Posts: 5,795
Website

Re: adding functionality to image caption on single image page

We generally prefer that users not edit the template files, but if you must, the single image view is in /backlight/modules/standard-album/dynamic/views/single.php.


Matt

The Turning Gate, http://theturninggate.net

Offline

#3 2017-01-14 19:43:25

rolf
Member
From: Rheinbach, Germany
Registered: 2014-10-18
Posts: 14

Re: adding functionality to image caption on single image page

ok, I understand. Is there a different way to achieve it?

Offline

#4 2017-01-14 23:17:00

Matthew
Administrator
From: San Francisco, CA
Registered: 2012-09-24
Posts: 5,795
Website

Re: adding functionality to image caption on single image page

Try PHPlugins, ttg_single_bottom.


Matt

The Turning Gate, http://theturninggate.net

Offline

Board footer

Powered by FluxBB