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 2017-11-29 15:52:34

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

album set, album, single page replacement

I'm just reviewing the PHplugins updates coming with Backlight 1.2.3 Release 2 and started to wonder what for I could use some of the functions. There are three functions available to replace the content of album set grids, album grids and single image views:

 *    ttg_albumset_top
 *      - if return=false, normal copy is skipped
 *      - called immediately within the media area
 *      - encompasses the gallery grid / slideshow; can be used to replace it

 *    ttg_album_top
 *      - if return=false, the album content is skipped
 *      - called immediately within the media area
 *      - encompasses the album grid / slideshow; can be used to replace it

 *    ttg_single_top
 *      - if return=false, single image and content are skipped
 *      - called immediately above the single image display
 *      - encompasses the single image and related metadata; can be used to replace it
 *      - available only on single-image HTML pages for applicable album templates

If I would like to replace one of the grids or the single page view with my own implementation, wouldn't I need to have access to some type of data structure that contains the basic information of what is displayed (eg, number of images, links to images, thumbnails and image meta data)?

Looks like these functions currently are more useful to insert additional text than replacing a gallery. Or did I overlook something? Thanks!


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

Offline

#2 2017-11-29 16:47:45

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

Re: album set, album, single page replacement

I believe we'll be exposing some of that at a later time, possibly in Backlight 2, if not sooner.

For now, having things wrapped for replacement is more a matter of standard implementation, than for practical use. The hooks are currently most useful for inserting content above and below.


Matt

The Turning Gate, http://theturninggate.net

Offline

#3 2017-11-30 00:48:27

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

Re: album set, album, single page replacement

Matthew wrote:

I believe we'll be exposing some of that at a later time, possibly in Backlight 2, if not sooner.

Oh, nice smile

Matthew wrote:

For now, having things wrapped for replacement is more a matter of standard implementation, than for practical use. The hooks are currently most useful for inserting content above and below.

Okay, that's what it looked like to me.

Thank you for your feedback.


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

Offline

Board footer

Powered by FluxBB