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
I now tried all but I can't display any METADATA below the Thumbnails or within the large image presentation.
I also just put in the word "Test" into all the fields of the METADATA section, enabled METADATA 01 and 02 in the thumbnail section, but there are still no METADATA on the thumbnail page or within the image presentation. Within the image presentation there is only displayed the image filename always.
Update: Ok, I now created a new Test-Album within Lightroom Publisher and loaded it up. There it is working.
And I just learned that you have to create the Thumbnails again from the old albums and then it is working too.
But I still can only display the filename within the large image presentation.
Last edited by lulu99 (2016-05-07 19:47:33)
Offline
The way the gallery is coded at present, if there is no caption provided, then the file name will be displayed. I am open to feedback on this logic.
Offline
The gallerie is working fine for me now with meta 1 and 2.
My problem still is that in the photoswipe large gallerie there are no metadatas. In CE4 there was metadata 01 above the picture and metadata 02 below when I right remember. Now I only see the filename at the bottom, that is all.
Offline
Metadata shows only at the bottom. But you can put as many metadata tokens there as you like. Plus your own text.
For example:
{Filename} | {Caption}
Rod
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site
Offline
Thanks Rod.
Last edited by lulu99 (2016-05-07 22:17:34)
Offline
Hm, still searching, which value do I have to change that I get displayed my selected metadata in the photoswipe large gallerie at the bottom?
Last edited by lulu99 (2016-05-08 00:39:49)
Offline
in your album template, go to the Image Settings > Image Metadata
You'll need to republish your albums. In the Lightroom Publisher settings, check the "Push metadata ..." box to make this faster.
Rod
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site
Offline
Ah, now I got it. Thank you so much Rod.
Some steps are easy and some hard with the new version.... :-)
Offline
Metadata shows only at the bottom. But you can put as many metadata tokens there as you like. Plus your own text.
For example:
{Filename} | {Caption}
Any way to get a newline in there so that the Filename appears above the caption?
Offline
I don't think Photoswipe supports HTML formatting in the captions.
Offline
Matt,
The Photoswipe demo album at: http://photoswipe.com/#&gid=1&pid=1 shows a caption and, on a separate line, the photographer's name.
Is there a way you can use that to have two assignable text boxes below the large photoswipe photo in Backlight?
Offline
In that example, he's using a separate, custom data-author attribute on the image, and sourcing that to process into the caption with extra Javascript.
Offline
I've just found a way to do HTML in the captions, but it cannot be used at the moment. Backlight uses the same content for the image's alt attribute as for the caption, and the alt attribute should not contain HTML. I would need to come up with some way of separating the two, which would require reworking some things.
Offline
Appreciate the effort!
Offline
Matt, strip_tags($caption) could do the trick for the alt attribute. Without any further parameters, that will convert something like:
<p>Test paragraph.</p><!-- Comment --> <a href="#fragment">Other text</a>
to
Test paragraph. Other text
(example taken from: http://php.net/manual/en/function.strip-tags.php)
Offline
Thanks, Ben. I'll do some experimenting to see how that works with feeding HTML into the captions setup.
Offline
Well, HTML is a no-go in the metadata fields in Backlight. It parses out to something like this:
<strong></strong><br /><small></small>
Which I'm sure is something we did intentionally, to prevent users breaking things. But it means that if we're going to allow formatting within captions, it will need to be handled differently. Mixing metadata tokens with HTML isn't going to work, and nor should it.
Offline
There's probably a call to htmlspecialchars somewhere in Publisher:
Offline
I was not intending to put HTML in the photo's metadata.
What I was thinking was being able to put HTML in Backlight's "Photos Caption" field in the Album Template.
Something like:
{Title} <br> {Caption}
Offline
Yeah, that's what I was saying doesn't work. We sanitize all input going through that field. This serves to prevent users from breaking the page's code by using quotation marks and apostrophes in their captions, as they should be able to do. This converts characters into longform entities, so quotations marks go from " to ", and HTML tags go from <span> to <span>.
Offline
With regard to lack of Caption falling back to Filename, my preference would be to fall back to Title if there is one, otherwise to Filename.
Regards
Chris
Offline
That's reasonable, and reasonably easy to do. Good idea.
Offline
Pages: 1