Floorplan to start open deep-linking   [SOLVED] - View the solution

This sub-forum is for discussing and reporting bugs on any content that is not available by default in Panotour, so this concerns custom HTML templates, extra plugins (both Kolor-provided and third-party), etc...

Ce sous-forum a été créé pour discuter et/ou rapporter des bugs sur tout contenu qui n'est pas disponible par défaut dans Panotour, donc cela concerne les templates HTML customisés, plugins supplémentaires, etc...
no avatar
Sean King
Member
 
Topic author
Posts: 107
Likes: 1 post
Liked in: 4 posts
Joined: Fri Jun 28, 2013 1:17 pm
Info

Floorplan to start open deep-linking

by Sean King » Mon Aug 22, 2016 7:09 am

My client would like to send a URL of his tour in an email with the floor plan open.

However, he still wants the tour in his homepage to start with the floor plan closed.

Is there any way to add something to the end of the URL of his tour, so that his tour starts with the floor plan open?

Sort of like when you add deep links to the URL to start on a specific panorama, ?s=pano31&h=0.0003&v=0.0000&f=90.0000

But instead the Information at the end of the URL would start the tour with the floorplan open.

Thanks for the help.

User avatar
360-compunics-com-ni
Member
 
Posts: 418
Likes: 15 posts
Liked in: 163 posts
Joined: Wed Dec 17, 2014 12:37 am
Location: León, Nicaragua
Info

Re: Floorplan to start open  [SOLVED]

by 360-compunics-com-ni » Mon Aug 22, 2016 1:50 pm

Can be done with an additional function that looks for an "url-switch", lets say: "fpopen=true" on startup.
The URL to open the floorplan then would look like: ?s=pano31&h=0.0003&v=0.0000&f=90.0000&fpopen=true

Code: Select all
<krpano>
<events name="fpshowEvent" keep="true" onTourStart="if(fpopen,showFloorplan(); );" />
</krpano>


That code can be added to your project via the"Include of a XML file"-additional plugin, to have it permanent over rebuilds.
Out now: DeviceCheck for PTP plugins! https://www.kolor.com/forum/viewtopic.php?f=40&t=37446

Want to know how clients use your tours? Google Analytics Track Events plugin: http://www.kolor.com/forum/viewtopic.php?f=40&t=34442

Add actions to your hotspots: Hotspot Actionlist plugin: http://www.kolor.com/forum/viewtopic.php?f=40&t=35829

Annis likes this post.

no avatar
Sean King
Member
 
Topic author
Posts: 107
Likes: 1 post
Liked in: 4 posts
Joined: Fri Jun 28, 2013 1:17 pm
Info

Re: Floorplan to start open

by Sean King » Thu Aug 25, 2016 6:25 am

Thanks for the help.

Regards,


Who is online

Users browsing this forum: No registered users and 1 guest

cron