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 2016-12-25 06:49:19

grover_c
Member
Registered: 2016-12-10
Posts: 117

Content above and below Album

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

#2 2016-12-25 10:37:41

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

Re: Content above and below Album

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

#3 2016-12-25 13:13:07

grover_c
Member
Registered: 2016-12-10
Posts: 117

Re: Content above and below Album

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

#4 2016-12-25 14:21:16

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

Re: Content above and below Album

grover_c wrote:

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

#5 2016-12-26 00:36:56

grover_c
Member
Registered: 2016-12-10
Posts: 117

Re: Content above and below Album

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

#6 2016-12-26 00:58:13

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

Re: Content above and below Album

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

#7 2016-12-26 01:52:09

grover_c
Member
Registered: 2016-12-10
Posts: 117

Re: Content above and below Album

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

#8 2016-12-26 02:58:48

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

Re: Content above and below Album

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

#9 2016-12-26 15:30:34

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

Re: Content above and below Album

Such things are not available as variables within Backlight. Sorry.


Matt

The Turning Gate, http://theturninggate.net

Offline

#10 2016-12-26 23:42:17

grover_c
Member
Registered: 2016-12-10
Posts: 117

Re: Content above and below Album

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

#11 2016-12-27 12:33:07

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

Re: Content above and below Album

You could use jQuery to move the information. See append() and prepend() in the jQuery API.


Matt

The Turning Gate, http://theturninggate.net

Offline

#12 2016-12-27 12:42:09

grover_c
Member
Registered: 2016-12-10
Posts: 117

Re: Content above and below Album

Thanks for the suggestion.  I'll try it out.

Offline

#13 2016-12-27 13:55:46

grover_c
Member
Registered: 2016-12-10
Posts: 117

Re: Content above and below Album

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

Board footer

Powered by FluxBB