HTML Title Tag

Q&A about the latest versions
Post Reply
MSusman
Posts: 43
Joined: Mon Jul 21, 2014 9:38 pm
Location: Houston, Texas
Contact:

Currently the title tag defaults to title of the Starting node. How would one change the default to be the title of the Master Node?
Thanks in advance!
User avatar
Hrvoje
Posts: 171
Joined: Sat Feb 28, 2009 7:34 pm
Location: Zagreb, Croatia
Contact:

Hello

I would like to know the same thing.
In most cases, title for whole tour doesn't match the first panorama title.
It's pretty easy to do it manually, but why cant pano tour get title from master node?
This is the most logical behavior and it would save us time from manually edit index file after every change(s) in tour.

If setting default html title, which isn't first pano title - isn't possible,
consider this as feature suggestion :)

Regards
User avatar
Hopki
Gnome
Posts: 13005
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

Hi Guys,
The HTML page title is taken from the first nodes user data title.

The line in the normal.ggt that lifts the text from the user data is:

Code: Select all

<title><?ggs document.write(document.encode(document.removeTags(document.expandVariables(config.userdata.title)))); ?></title>
The attached .ggt has this line modified to:

Code: Select all

<title><?ggs document.write(document.encode(document.removeTags(document.expandVariables(config.userdata.comment)))); ?></title>
This .ggt uses the comment text field from node one user data for the title text for the HTML page.
I chose the comment text field as this is not used in the user data popups found in the packaged skins.

Regards,
Hopki
Attachments
normal_comment.ggt
(9.01 KiB) Downloaded 216 times
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
Hrvoje
Posts: 171
Joined: Sat Feb 28, 2009 7:34 pm
Location: Zagreb, Croatia
Contact:

Hi Hopki

As usual, simple and elegant solution from you.
Thanks for the hint :)

Regards
User avatar
TimW
Posts: 21
Joined: Sat Jun 13, 2015 12:27 pm
Location: New Zealand
Contact:

How is this ggt file applied to my skin?
Tim
User avatar
Tony
Posts: 1342
Joined: Mon Feb 15, 2010 6:54 am
Location: Adelaide, South Australia
Contact:

Hi Tim,
TimW wrote: Thu Jan 04, 2018 2:44 amHow is this ggt file applied to my skin?
It isn't applied to your skin but used by the software as the template for the index.html file. There is more information about the .ggt file format at https://ggnome.com/wiki/HTML_Template

To load it you will need to place it in the HTML Template Directory, on your computer. You can find out the location of the folder by opening up Preferences | Files. Once you placed it restart Pano2VR and it will be in the dropdown menu in the Output | HTML | Template section.

Load-ggt.png
Load-ggt.png (187.78 KiB) Viewed 4429 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/
Post Reply