How do I display the value of a variable in a textbox

Q&A about the latest versions
Post Reply
User avatar
frostyfriday
Posts: 35
Joined: Mon Jan 29, 2018 5:22 pm
Location: Nanaimo, BC and Portland OR
Contact:

I have an info button that pops up some text telling my tour operator what the node number of the current pano is.
eg: "http://tour.awden.com/137h5/#$(node)"

This added to ""http://tour.awden.com/137h5/" tells them what link to send to a customer so that they can open that exact pano. My customers like this a lot and they don't have to bother me to find out the node number.

What I want to do is have a variable in my skin (I use "tour_directory") that I setup for each new tour.

I then want to display this in a textbox much like I detailed above, but I want the tour directory (the "137h5" part) to change to show the value I set in the variable. This way I don't have to go and edit the textbox each time I build a new tour, I just change the value by clicking "Edit Skin Config" button.

So how do I display the contents of a variable I have defined?

-Dennis
Dennis Frost
-----------------------------------------------------
Awden Photography - http://Awden.com

Virtual tour samples: http://bit.ly/PaintedBoat, http://bit.ly/ShelterPoint, https://roundme.com/embed/hB6FOhIv0JvPfnQhk0F2
User avatar
Hopki
Gnome
Posts: 13025
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

Hi Dennis,
In Pano2VR 6 you can use the "insert placeholder" button as found in the properties of the text box.
As an example, I have added a Text Variable called "language" to the skin with an initial value of "en".

1.png
1.png (20.72 KiB) Viewed 2200 times

Add a text box and add the fixed part of your text, in my example it is "The current language is:" (Red arrow)

Screenshot 2019-08-29 at 10.20.04.png
Screenshot 2019-08-29 at 10.20.04.png (134.77 KiB) Viewed 2200 times

Then select the "insert placeholder" button (Green arrow)
Select Variables (Blue arrow)
Then from the list select the variable (Yellow arrow)

The text box will now display the contents of the variable.
So, in this case, the text box will say "The current language is: en"
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
frostyfriday
Posts: 35
Joined: Mon Jan 29, 2018 5:22 pm
Location: Nanaimo, BC and Portland OR
Contact:

Ah, that was simple. Thanks!

One more thing. Is there an easy way for me to have the user copy this text if they are using a desktop, or even making it a clickable link.

My goal is to have a way by which they can easily get the link to be able to send it to one of their clients and point the client directly to a particular link.

The way I have it right now, after your help, is I at least have the full url with node on screen but they can't select it to copy and paste etc.

Thanks.

-Dennis

PS I haven't been building tours for a bit and the new stuff in V6 is just great. Loving it!
Post Reply