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 2020-02-12 06:44:24

andacar
Member
From: Albuquerque, NM
Registered: 2014-09-03
Posts: 159
Website

Image Gallery with outside top menu?

I have created a Bootstrap main page that references Backlight 1 image galleries along with several other pages. I'd like to use the same top menu for all. I'd like to either


A: have the Bootstrap menu show up in Backlight galleries

B: show the Backlight galleries in Bootstrap pages

What is the best approach?

Thanks!


Darrell Leland

"Never go creeping around old castles at night; you may find what you're looking for."
- Grimsley

Offline

#2 2020-02-12 06:51:07

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

Re: Image Gallery with outside top menu?

the easiest thing to do is create a menu set with the same navigation as the rest of the site and assign that menu set to the page template that's assigned to your album template.

But if you need to, you can use phplugins to replace the native Backlight menu with one of your own coding. Use the ttg_navigation hook


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 2020-02-12 08:31:52

andacar
Member
From: Albuquerque, NM
Registered: 2014-09-03
Posts: 159
Website

Re: Image Gallery with outside top menu?

OK thanks, Rod. Where would be a good resource to figure out how to do that?


Darrell Leland

"Never go creeping around old castles at night; you may find what you're looking for."
- Grimsley

Offline

#4 2020-02-12 08:37:46

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

Re: Image Gallery with outside top menu?

For the first option, just create a new menu set in Designer > Menu Sets and assign the new menu set to the page template your albums are using.

for phplugins:
there's are samples in the phplugins files themselves. One of the samples is using the ttg_navigation hook to replace the Backlight menu.
Look in the phplugins-pangolin-sample.php if you're using Pangolin templates and phplugins-okapi-sample.php if you're using Okapi templates
these files are in your download in the backlight/custom/phplugins/ folder

And here's the documentation on how to enable phplugins:
http://backlight.theturninggate.net/doc … acklight_1


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 2020-02-12 08:43:14

andacar
Member
From: Albuquerque, NM
Registered: 2014-09-03
Posts: 159
Website

Re: Image Gallery with outside top menu?

I really appreciate it Rod. Thanks a lot!


Darrell Leland

"Never go creeping around old castles at night; you may find what you're looking for."
- Grimsley

Offline

Board footer

Powered by FluxBB