GoTo URL -> multiple websites from one button?

Q&A about the latest versions
Post Reply
JSchrader
Posts: 141
Joined: Sat Nov 28, 2015 2:26 pm

I have a button that changes it's text label depending on where I am in the tour.
From that same button (Mouse Click) I want to link to different external websites depending on the same parameters as the text does.
Is there a way to do that from one button or do I need a button for each website I want to link to?
User avatar
Hopki
Gnome
Posts: 13026
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

Hi Jürgen,
How are you changing the text?
Is it going to be one URL per pano or would there be more than one in a panorama?
If its just the one then you can use a userdata text field and then use the place holder.
Example attached.
Using mouse click, goto url, url:$us, target: _blank.
Regards,
Hopki
Attachments
Jurgen .zip
(502.01 KiB) Downloaded 148 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/
JSchrader
Posts: 141
Joined: Sat Nov 28, 2015 2:26 pm

Hi Martin,
the button is a fixed menu item, not related to a specific panorama.
So I'm afraid your sample will be of no help.

The text is changing with a logic block: if *lang*=xblah and *tag*=yblah text=blahblah

In real this will be three tags and two langauges which means 6 different texts.

For each text I need to link to a different website on MouseClick.
User avatar
Hopki
Gnome
Posts: 13026
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

Hi Jürgen,
Then I can only think to stack 6 go to URL buttons.
Use the logic on visible to show the correct button.

Its should be fast enough to do just copy and paste the same button 5 more times and change the URL
The you would need to set the logic block as in your example:
logic block: if *lang*=xblah and *tag*=yblah visible, true
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/
JSchrader
Posts: 141
Joined: Sat Nov 28, 2015 2:26 pm

Yeah, I know how that works.
Was hoping I could avoid it ^^
Thank you anyway :-)
Post Reply