Phplugins hook locations in Backlight 1

Hook locations on a Backlight page.

NOTE: This is for Backlight 1. Hook names are slightly different in Backlight 2

On my Backlight test site I’ve created a couple of pages that show the locations for those phplugins hooks that appear on pages (as opposed to those that are behind the scenes, like the head and script hooks). These hooks are current as of Backlight 1.1. I’ll update as new hooks are added.

All phplugins hooks are using return true; so that the original page content still shows. Most ttg_xxx_top hooks also have the option of using return false;. Using return false; will replace the section’s content rather than add content before the existing page content.

Click here to go to a full page.

Click here to go to an album.

If you want to try this yourself, feel free. Click here and then copy/paste everything into your text editor. Save as a .php file and upload it to your /backlight/custom/phplugins folder. Then just choose it for one of your page templates in Advanced Customization.

Pangolin update

I’ve also created a Pangolin-based page showing the hook locations. You can see that here. And you can download the text file here.

2 thoughts on “Phplugins hook locations in Backlight 1”

  1. Ok it’s my first Phpplugin test.
    I have save link as hook-location.php
    Then transfert it on backlight>custom>phplugins
    Enable on Advanced customization / PHPPluging /Include File “the hook-location.php”
    Save and test on a page

    And I have the error “Something went wrong.Unexpected error: syntax error, unexpected end of file in hook-location.php on line 295”

  2. syntax errors can come about because of using a word processor rather than a plain text editor.
    but with that error, I suspect that you may not have copied the entire text, namely the ?> at the end.

    if that’s not it, feel free to email the hook-location.php file you created to me and I’ll look at it.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

About this site

This site is: a repository of time-savers and best practices from a user's perspective, picked up from several years of using TTG plugins.
This site is not: a support site.
Read more here.

Subscribe to new posts

Tip Jar

If this site has saved you some time, kept your hair attached, or otherwise prevented you from tossing the mouse through the monitor, feel free to donate.

Categories


Highly recommended. This is my go-to Lightroom book. Click on the book image. (affiliate link)

Affiliate link!

Current TTG versions

Backlight  4 & 5

See the Backlight Modules page on your site for latest Backlight and module versions and changelogs.

You’ll also find the latest version number and download link for the Lightroom Publisher plugin.
(BL 3 and later)

 

Backlight 1 Versions

Backlight 1.2.4
Pages module 1.2.4
Cart Add-on 4.1.7
Client Response Add-on 7.1.3
Theater Add-on 1.2.6
Galleria Add-on 1.0.0
WordPress Add-on 1.2.6
Publisher 3.2.3

Backlight 1 has seen its end of life. See this post.

CE4 Versions

note: CE4 is no longer being developed or sold. See this post.

TTG-BE: 2.0.5a
Autoindex: 7.0.8
Cart: 3.1.4a
CRG: 6.1.3a
Gallery: 6.1.10
Pages: 7.0.15
Publisher: 2.3.3
Stage: 6.1.6
Theme for WordPress: 3.1.2