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.
You are not logged in.
Pages: 1
How can I embed links in the captions of photo images uploaded to Backlight 2 via Lightroom?
I want a "Click to purchase" opportunity that will take a viewer to the image in my Fine Art America site.
Thank you. Here's my site http://johnellsworth.com
Offline
That’s not possible. Captions cannot contain html.
However, you can assign specific pricing schemes to images in a cart enabled album by using the Mixed Pricing option in the cart add-on.
https://ttg-tips-and-tricks.barbeephoto … ht-albums/
Rod
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site
Offline
I was afraid that was the case. Is that the doings of TTG or LR? Or simply universal coding?
The "cart enabled" album is redundant for me. I already have prices and options set up at Fine Art America. I'd like to send customers directly to a corresponding image and options on their pages. Is there any album compatible with TTG Backlight whereby I can enter text and links alongside a displayed photo. Thanks, Rod.
Offline
this has come up a number of times and Matt explained it once but I don’t recall the reason it can’t work.
The same restriction would apply to any album using image metadata to display information.
There are other options, depending on what you want things to look like and how much html you want to write.
Rod
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site
Offline
I'd like to send customers directly to a corresponding image and options on their pages. Is there any album compatible with TTG Backlight whereby I can enter text and links alongside a displayed photo. Thanks, Rod.
Actually, if you're displaying one photo at a time, you could use Theater's Still Image presentation. Put one image in the album, and in the album copy enter the html to link to the corresponding picture in the Fine Art America album.
Rod
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site
Offline
Or you could use single image display and add your custom button/link using phplugins.
Daniel Leu | Photography
DanielLeu.com
My digital playground (eg, Backlight tips&tricks): lab.DanielLeu.com
Offline
Thank you Dan and Rod. I will explore the Theater's Still Image presentation as well as phplugins. I appreciate it.
Offline
Rod, I think I may use your suggestion for "featured" photos, or new works. Looks like it will be useful.
Dan, would you please point me in a direction to implement phplugins? I'd appreciate it. Thanks to you both.
Offline
there's a section in the documentation about using phplugins.
The hooks you'd use for the Single Image presentation would be single_top and single_bottom. You could add text with a link to the gallery page. However, it would get a little tricky to customize the text for the specific image shown; some additional php I imagine. Daniel would probably know.
Another option, if you're only featuring a few images, is to use the TTG Responsive grid to display images and captions inside of <figure> elements and using <figcaption> to hold the caption and link text.
Say you had four new featured images. You can set up a responsive grid with one row and four columns. Each "cell" would have a picture and caption.
I've done something similar on the home page of my test site at the bottom of the page: http://backlight-2-100.barbeephoto.com/
In this case I'm using three columns and the images themselves are the links. But you could easily make the caption the link.
Let me know if you're interested and I'll post some sample code.
Rod
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site
Offline
Hi John,
Dan, would you please point me in a direction to implement phplugins? I'd appreciate it. Thanks to you both.
Here are two little functions that you can add to your phplugins file. First is a helper that translates urls into real links. Then there is the single_bottom() function that shows some image infos on single image pages. This function is what you want to modify so it provides the link and infos to your Fine Art America image page. As shown, you can provide the url to your sales site using metadata, caption, or you could derive it from the image filename.
Yep, the urls trick works only here on single image pages.
// Parses texts and replaces text links with real URLs. Used to display them in single-page view.
function to_url($text) {
return preg_replace('@(http)?(s)?(://)?(([-\w]+\.)+([^\s]+)+[^,.\s])@', '<a href="http$2://$4">$1$2$3$4</a>', $text);
}
function single_bottom()
{
if ($this->hasPhoto()) {
echo '<p>';
echo '<strong>Image Infos:</strong><br/>';
echo 'Filename: '.$this->photo->getFilename().'<br/>';
echo 'Dimensions: '.$this->photo->getPhotoWidth().'w x '.$this->photo->getPhotoHeight().'h<br/>';
echo 'Title: '.$this->photo->getMetadata(Photo::$PHOTO_TITLE).'<br/>';
echo 'Caption: '.to_url($this->photo->getMetadata(Photo::$PHOTO_CAPTION)).'<br/>';
echo 'Metadata 1: '.to_url($this->photo->getMetadata("metadata_one")).'<br/>';
echo 'Metadata 2: '.to_url($this->photo->getMetadata("metadata_two")).'<br/>';
echo '</p>';
}
return true;
}
Daniel Leu | Photography
DanielLeu.com
My digital playground (eg, Backlight tips&tricks): lab.DanielLeu.com
Offline
Thanks again, gentleman. I am grateful for your suggestions and assistance. I have to give all of this thought then fiddle around with it.
Offline
Thanks again, gentleman. I am grateful for your suggestions and assistance. I have to give all of this thought then fiddle around with it.
Yeah, the user experience is a bit different when using the single-page view as the gallery representation.
Daniel Leu | Photography
DanielLeu.com
My digital playground (eg, Backlight tips&tricks): lab.DanielLeu.com
Offline
Obviously, the user's experience is very important to me. What I think I will do is put a link in each album description to the corresponding collection at Fine Art America. I'm certain viewers would be able to navigate successfully once they were in the correct collection.
A single-page galley representation would not expedite finding images within a viewer's interest. I like the idea of collections.
Offline
A single-page galley representation would not expedite finding images within a viewer's interest. I like the idea of collections.
You still have the gallery view. When you click on an image, you go to the single-image view if this is what you have selected.
Daniel Leu | Photography
DanielLeu.com
My digital playground (eg, Backlight tips&tricks): lab.DanielLeu.com
Offline
Right. This is what I use now, the classic gallery view. And as you say, I click on a thumbnail and I get single view. As mentioned, I wanted a link to the corresponding FAA page for the "larger" image. So, are you saying that the phplugins will furnish an FAA link in each of the single views of the classic gallery? When you and Rod mentioned "single image," I was thinking along the lines of the theater single-image presentation whereby I need an album for each image. Sorry for my misunderstanding.
Offline
This is the single-image view: https://johnellsworth.com/collections/a … single.php
In the album preferences, you can enable to go there directly from the album grid. This is what I meant with different user experience.
Daniel Leu | Photography
DanielLeu.com
My digital playground (eg, Backlight tips&tricks): lab.DanielLeu.com
Offline
Oh, OK. Now I understand. I was not aware of this configuration. That could work for me. I will give it a go over the next week or so to see if I can configure it. Thanks for having stayed with me on this, Dan.
Offline
Pages: 1