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 2019-10-24 01:16:57

pideja
Member
From: Montreal
Registered: 2013-02-26
Posts: 1,299

Filename + Caption in OKAPI albums

Is it possible to add a filename and a caption to an OKAPI large image presentation within an OKAPI album?

https://pideja.ca/gbc/galleries/15_carm … single.php

Offline

#2 2019-10-24 01:54:37

Daniel Leu
Moderator
Registered: 2012-10-11
Posts: 1,624
Website

Re: Filename + Caption in OKAPI albums

Yes. I show the principles over on my blog at https://lab.danielleu.com/blog/customiz … page-view/


Daniel Leu | Photography   
DanielLeu.com
My digital playground (eg, Backlight tips&tricks): lab.DanielLeu.com

Offline

#3 2019-10-24 02:16:22

pideja
Member
From: Montreal
Registered: 2013-02-26
Posts: 1,299

Re: Filename + Caption in OKAPI albums

Merci Daniel

Offline

#4 2019-10-24 02:58:49

Daniel Leu
Moderator
Registered: 2012-10-11
Posts: 1,624
Website

Re: Filename + Caption in OKAPI albums

All thanks to the power of Backlight 2 and their enhanced API!


Daniel Leu | Photography   
DanielLeu.com
My digital playground (eg, Backlight tips&tricks): lab.DanielLeu.com

Offline

#5 2019-10-24 03:46:14

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 17,830
Website

Re: Filename + Caption in OKAPI albums

Pierre, I think you'll need to upgrade your Okapi albums to Pangolin before using Daniel's code.

But if you merely want the filename and caption to appear, just add those tokens to the Photos Caption metadata token field in the album template (under Image Settings) then republish.

{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

#6 2019-10-24 04:01:42

Daniel Leu
Moderator
Registered: 2012-10-11
Posts: 1,624
Website

Re: Filename + Caption in OKAPI albums

rod barbee wrote:

Pierre, I think you'll need to upgrade your Okapi albums to Pangolin before using Daniel's code.

But if you merely want the filename and caption to appear, just add those tokens to the Photos Caption metadata token field in the album template (under Image Settings) then republish.

{Filename} | {Caption}

It should work with Okapi on BL2 too. But your approach is much easier if Pierre just wants to add the text without major markup.


Daniel Leu | Photography   
DanielLeu.com
My digital playground (eg, Backlight tips&tricks): lab.DanielLeu.com

Offline

#7 2019-10-24 05:20:10

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 17,830
Website

Re: Filename + Caption in OKAPI albums

For some reason I thought there was a separate phplugins file for Okapi.


Rod 
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site

Offline

Board footer

Powered by FluxBB