Page 1 of 1

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

Posted: Wed Aug 28, 2019 4:14 pm
by frostyfriday
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

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

Posted: Thu Aug 29, 2019 11:29 am
by Hopki
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 2193 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 2193 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

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

Posted: Thu Aug 29, 2019 10:57 pm
by frostyfriday
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!