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 Re: Backlight Support » phpplugin hook for a single page » 2018-01-27 05:57:01

Thank you Rod for your suggestion to use separate scripts for each page, I forgot to mention it's my current workaround but I have to maintain a bunch of templates whitch hold 99,9% of the same configuration.

Daniel, I will give your solution a try, thank you very much!

#2 Backlight Support » phpplugin hook for a single page » 2018-01-26 23:52:40

JuergenTH
Replies: 4

Hi,

I'm migrating my running CE4 website to backlight (1.2.3r4).
What I wish do have is a hook triggered only when a specific page is called.
Is there a php variable like $page or a env variable containing the path or the identifier?

in the CE4 environment I did it like this for example for the standard 'Info' page:

function ttg_block_bottom( $style, $path ) {
    if (G_STYLE == 'CE4-PAGES-INFO') {
        echo '.....'
    }
}

This runs well although I never explored the possibility to trigger it beyound a standard page identifier.

Hope you have an idea!

Regards,
Jürgen

Board footer

Powered by FluxBB