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
Hi Guys,
What is the best way to add content above an Album, it would be a custom styled title for the gallery, and then have the gallery thumbnails as usual, and then content below the thumbnails, which would be a custom description? Currently I only seem to be able to choose one or the other.
Thank you.
Last edited by grover_c (2016-12-25 06:49:42)
Offline
you'll need to use phplugins to add copy where you want it.
use the ttg_gallery_bottom hook to add copy after the thumbnails.
use the ttg_gallery_top hook to add copy before the thumbnails.
see the phplugins-sample.php file in the backlight/custom/phplugins/ folder for the full list of hooks.
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, Rob. I'm already using phplugins for other purposes. I'm looking to add unique information for each Album, title/heading above the thumbnails and a description of the the body of work below. Any ideas?
Last edited by grover_c (2016-12-25 13:14:31)
Offline
Thanks, Rob. I'm already using phplugins for other purposes. I'm looking to add unique information for each Album, title/heading above the thumbnails and a description of the the body of work below. Any ideas?
Not really. As you know, all that is done in Lightroom, with the album title becoming the page title and the album copy confined to the one copy area. I don't know enough about how it's then fed to the page to even know if it's possible to split things above and below the thumbnail grid.
That's something for Matt and Ben.
Rod
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site
Offline
As an example, I'm looking to be able to do this, which is on my current website. http://www.bretculp.com/gallery/TBOI/
Do you think I could use ttg_gallery_bottom hook to present the "Album Title" entered in Lightroom? If so, what is the "Album Title" variable and/or the code to add it via ttg_gallery_bottom?
Thanks again.
Offline
That's something for Matt to address.
My guess is that you'd have to write some PHP that would access the database to pull the album title. Plus some HTML to contain the text.
Rod
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site
Offline
Ok, I'll wait to hear from Matt. Thanks, Rod.
FWIW, I can't imagine that this wouldn't be important to many others as well. Simply put, I suggest that an Album page should be able to include the Album Title followed by the thumbnails, followed by a description, artist statement, etc. for those that may want additional information.
Regards
Offline
It's not been a common request. Most are fine with just using the page copy fields in the create/edit album dialogs in Publisher (Lightroom)
Rod
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site
Offline
Such things are not available as variables within Backlight. Sorry.
Offline
Hi Matt,
Is there another way you can think of to add an album title above and some content below the thumbnails of an album page.
Thanks
Last edited by grover_c (2016-12-27 11:48:10)
Offline
You could use jQuery to move the information. See append() and prepend() in the jQuery API.
Offline
Thanks for the suggestion. I'll try it out.
Offline
It worked! Thanks again for the suggestion. I ended up using the .insertAfter() jQuery command.
Last edited by grover_c (2016-12-28 00:58:55)
Offline
Pages: 1