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 2015-11-04 16:58:06

Genox
Member
Registered: 2015-08-08
Posts: 31

New Nav button and Hyperlink

Hi,
I want to create new link label in #08 Nav Hyperlink (Prints) and link it to an external web site.
How do I do that?
I am using auto index, gallery and pages.
Thanks

Offline

#2 2015-11-04 17:20:37

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

Re: New Nav button and Hyperlink

Just provide the label and url, beginning with http://


Matt

The Turning Gate, http://theturninggate.net

Offline

#3 2015-11-05 07:30:50

Genox
Member
Registered: 2015-08-08
Posts: 31

Re: New Nav button and Hyperlink

Matthew,
Step 1 is done... made changes to Nav link in Pages.
What do I do next?

Offline

#4 2015-11-05 07:41:22

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

Re: New Nav button and Hyperlink

Export and upload again.
You can get away with uploading only the page files: index.php, mobile.php, galleries.php, services.php, etc.

You'll also need to make the same changes in all your autoindex and galleries. Re-export and upload all of these.

It's for situations like this that I always recommend enabling phplugins right from the start. With phplugins enabled you can make a change like this in one file and it will show up in all pages.
http://ttg-tips-and-tricks.barbeephoto. … ins-start/

And since you'll need to export and upload all your index files anyway, might as well take the opportunity to enable phplugins. Just in case you need to make more changes in the future.


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 2015-11-05 08:19:56

Genox
Member
Registered: 2015-08-08
Posts: 31

Re: New Nav button and Hyperlink

Hey Rod,
phplugins is enabled from the beganing.
How do I proceed?

Offline

#6 2015-11-05 08:29:34

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

Re: New Nav button and Hyperlink

Start with the documentation: http://ce4.theturninggate.net/docs/doku … #phplugins

In the phplugins.php file there are three sections you can use for navigation, depending on the type of navigation you want to use (single level, multi level)
Use a plain text editor like Notepad++ for Windows or Text Wrangle for Mac to edit the phplugins.php file and find the section of the code that pertains to the navigation type you're using. The code is well commented so you should have no problems locating it.

Once you find the section that applies, edit the code to reflect your navigation. Be sure to notice the lines that will need to be removed to activate that part of the code.


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 2015-11-05 08:51:22

Genox
Member
Registered: 2015-08-08
Posts: 31

Re: New Nav button and Hyperlink

Rod,
I exported new auto index, gallery and pages to my desktop (just single level nav, Home, gallery, about, contact).
What do I need to export to site to see new nav?

Offline

#8 2015-11-05 09:33:12

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

Re: New Nav button and Hyperlink

As long as you didn't make any other changes, like text or styling, you can get away with just uploading the the index.php files in autoindex, the index.php and mobile.php (or index.html and mobile.html) for galleries, and all the page files for Pages: index.php, mobile.php, galleries.php, info.php, etc.

did you decide against going the phplugins navigation route?


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 2015-11-05 11:13:02

Genox
Member
Registered: 2015-08-08
Posts: 31

Re: New Nav button and Hyperlink

Not sure how to use phplugins navigation.
I installed phplugins navigation when I created the site per your recommendation.

It's in place... How do I use it to add Prints to my nav bar?

I added Prints to the nav field in auto index, gallery and pages.

Offline

#10 2015-11-05 11:20:24

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

Re: New Nav button and Hyperlink

How do I use it to add Prints to my nav bar?

by editing the phplugins.php file to add the navigation item to the proper area and activating the navigation function by removing the indicated lines.

I just posted a tutorial on this: http://ttg-tips-and-tricks.barbeephoto. … phplugins/


Rod 
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site

Offline

#11 2015-11-05 13:23:33

Genox
Member
Registered: 2015-08-08
Posts: 31

Re: New Nav button and Hyperlink

I edited the phplugins.php per the tutorial, uploaded it and I get the old nav bar.
I must be doing something wrong.
gparksphotography.com

Offline

#12 2015-11-05 14:19:57

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

Re: New Nav button and Hyperlink

might be your path to phplugins. It should be this:

/home/content/w/p/a/wparks79/html/gparksphotos/phplugins

if that's not it, feel free to email my your phplugins file using the link under my name and picture.


Rod 
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site

Offline

#13 2015-11-05 15:29:37

Genox
Member
Registered: 2015-08-08
Posts: 31

Re: New Nav button and Hyperlink

our paths are the same.... I mailed file to you.

Offline

#14 2015-11-05 17:54:14

Genox
Member
Registered: 2015-08-08
Posts: 31

Re: New Nav button and Hyperlink

Rod,
Thanks for your help.
At around 1:00am, I got it working.
Take a look, let me know what you think, always looking to improve.
www.gparksphotography.com
Again
Thanks

Offline

#15 2015-11-05 22:43:03

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

Re: New Nav button and Hyperlink

glad it's working

smile


Rod 
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site

Offline

Board footer

Powered by FluxBB