Hi all!!!
How can I make the node name appear after index.html?
I know that I can call a specific node by passing the #node parameter, but I need the opposite, that as I move through the panorama, the node number or another identifier variable appears in the URL for tracking purposes.
Tks!
node in URL
Yes. You can add the name/ID in Custom Node ID in User Data.
https://ggnome.com/doc/dna/#custom-node-id
https://ggnome.com/doc/dna/#custom-node-id
-
- Posts: 3
- Joined: Mon Feb 08, 2021 1:40 pm
Hello, thanks for the help!
I tried everything and the number of the node does not appear in the browser url
I have already activated the show ID of the node in the advanced settings and I have already activated the direct access to the node in the HTML output, what can I be doing wrong? I've tried everything lol
I tried everything and the number of the node does not appear in the browser url
I have already activated the show ID of the node in the advanced settings and I have already activated the direct access to the node in the HTML output, what can I be doing wrong? I've tried everything lol
- Hopki
- Gnome
- Posts: 13022
- Joined: Thu Jan 10, 2008 3:16 pm
- Location: Layer de la Haye, Essex UK
- Contact:
Hi,
You can show the node id in the browser address bar.
In this example, the tour is in node3.
To make this work you need to add a container to your skin and give it the action.
For the code just copy and paste the following in the URL text field:
Regards,
You can show the node id in the browser address bar.
In this example, the tour is in node3.
To make this work you need to add a container to your skin and give it the action.
For the code just copy and paste the following in the URL text field:
Code: Select all
javascript: history.replaceState({}, player.userdata.title, location.href.replace(location.hash,"") + '#' + player.getCurrentNode());
Regards,
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/
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/
Hi,
Is there a way to get the custom node name in the url?
I would imagine player.getCurrentCustomNode()); or something like that.
I can't find anything suitable at https://ggnome.com/doc/javascript-api/
Is there a way to get the custom node name in the url?
I would imagine player.getCurrentCustomNode()); or something like that.
I can't find anything suitable at https://ggnome.com/doc/javascript-api/
- Hopki
- Gnome
- Posts: 13022
- Joined: Thu Jan 10, 2008 3:16 pm
- Location: Layer de la Haye, Essex UK
- Contact:
Hi,
Yes you would use: player.userdata.customnodeid.
Put this in a Node Changed, Go To URL action with
Regards,
Yes you would use: player.userdata.customnodeid.
Put this in a Node Changed, Go To URL action with
Code: Select all
javascript: history.replaceState({}, player.userdata.title, location.href.replace(location.hash,"") + '#' + player.userdata.customnodeid);
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/
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/
- Hopki
- Gnome
- Posts: 13022
- Joined: Thu Jan 10, 2008 3:16 pm
- Location: Layer de la Haye, Essex UK
- Contact:
Have you seen out Javascript API page?
https://ggnome.com/doc/pano2vr/referenc ... cript-api/
https://ggnome.com/doc/pano2vr/referenc ... cript-api/
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/
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/