Set tour language in html  

Share your tips and tricks here or get help with any Panotour 2.0+ problem!
No bug reports (of any kind) in this forum!
no avatar
Xander Berkenhagen
Topic author
Posts: 245
Likes: 5 posts
Liked in: 8 posts
Joined: Tue Oct 01, 2013 12:54 am

Set tour language in html

by Xander Berkenhagen » Sun Nov 15, 2015 3:23 am

Is it possible to switch the tour language by html. I want to make a dropdown in the bootstrap menu, that dropdown should switch the language....

Any ideas?



User avatar
Kolor Team
Posts: 2802
Likes: 14 posts
Liked in: 130 posts
Joined: Tue Jan 18, 2011 4:05 pm

Re: Set tour language in html

by bdd » Tue Nov 17, 2015 1:50 pm

You have to force the creation of the internal action that change the language.
This action is not created if it is not called by a plugin.
Templates are not plugins, we do not parse them to see if an action is called.

So create a fake "simple button" with 1pixel width and height, and a transparent ong icon, that calls this "Advanced" action : Change tour language.

And in yur HTML file, create an action that swicth the language.
And call the internal action like this :

function setEnglish(){

Xander Berkenhagen likes this post.

Who is online

Users browsing this forum: No registered users and 3 guests