How to change name in Browser Tab

Q&A about the latest versions
Post Reply
User avatar
TimW
Posts: 21
Joined: Sat Jun 13, 2015 12:27 pm
Location: New Zealand
Contact:

Hi there, Can anyone tell me how to change the name of my tour that appears in the browser tab (not the URL) see attachment. Tab is "Ahuriri" I want to change this?

Thanks

Tim
Attachments
tab.JPG
tab.JPG (189.36 KiB) Viewed 4551 times
User avatar
Tony
Posts: 1342
Joined: Mon Feb 15, 2010 6:54 am
Location: Adelaide, South Australia
Contact:

Hi Tim,

If you have already created the project you can open the index.html in a word editor and update the content of the <title> tag.

title-index.png
title-index.png (1.52 MiB) Viewed 4545 times

If you want to change it within your Pano2VR project you can set the 'Title' in the User Data window.

title-user-data.png
title-user-data.png (1.35 MiB) Viewed 4545 times

cheers,

Tony
Tony Redhead | Panoramic Photographer | mobile: +61438501002 | website: https://tonyredhead.com - https://redsquare.com | Pano2VR Tutorials: https://tonyredhead.com/pano2vr | instagram: https://www.instagram.com/tonyredhead/
User avatar
TimW
Posts: 21
Joined: Sat Jun 13, 2015 12:27 pm
Location: New Zealand
Contact:

Thanks alot Tony, Much appreciated

Cheers

Tim
User avatar
keith@fachwen.org
Posts: 136
Joined: Tue Aug 28, 2012 11:34 am
Location: North Wales
Contact:

I do this all the time. It would be nice if this could be set in the application rather than having to directly edit the HTML as it has to be re-done after every update :(
User avatar
Tony
Posts: 1342
Joined: Mon Feb 15, 2010 6:54 am
Location: Adelaide, South Australia
Contact:

Hi Keith,

If you use the option to set the Title in the User Data Window it will apply it for every update.

Tony
Tony Redhead | Panoramic Photographer | mobile: +61438501002 | website: https://tonyredhead.com - https://redsquare.com | Pano2VR Tutorials: https://tonyredhead.com/pano2vr | instagram: https://www.instagram.com/tonyredhead/
User avatar
keith@fachwen.org
Posts: 136
Joined: Tue Aug 28, 2012 11:34 am
Location: North Wales
Contact:

Yes, I know that :D

All that does is label an individual node with the title for the whole tour.

This doesn’t really work for me as I still like to title each node appropriately and separately to the title that sticks in the title bar of the web browser.
User avatar
Hopki
Gnome
Posts: 13005
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

Hi,
You can "mod" the normal.ggt.

Find the templates folder using Pano2VR's Settings and file tab.
Make a copy of the normal.ggt calling it something like title.ggt
Open it with a plan text document and then find "title".

You will see this line:

Code: Select all

<title><?ggs document.write(document.encode(document.removeTags(document.expandVariables(config.userdata.title)))); ?></title>
You can see that its using the user data title for the source of page title. If you change it to say information, so it looks like this:

Code: Select all

<title><?ggs document.write(document.encode(document.removeTags(document.expandVariables(config.userdata.information)))); ?></title>
Save and close.
Now when you use this template whatever you put in the user data Information text box will be used as the page title.
Im using information as this is one of the fields that is not used in the user data popup in the skin.
Of course you can use whatever text box you want, description may be a good one to as I would use this for the name of the tour and title for the individual nodes.
Regards,
Hopki
Garden Gnome Support
If you send an e-mail to support please send a link to the forum post for reference.
support@ggnome.com
https://ggnome.com/wiki/documentation/
User avatar
keith@fachwen.org
Posts: 136
Joined: Tue Aug 28, 2012 11:34 am
Location: North Wales
Contact:

Ah, very neat, I'll get onto that straight away :D

Update...

Works great, this will save me a lot of time and cut down on things to remember to do.

Works retrospectively too, in that I’m not having to edit ‘my custom’ template :D
Post Reply