Link generator  

Got some great idea or a feature request? Post it here and discuss it.
no avatar
HansKeesom
Member
 
Posts: 2154
Joined: Mon Jul 19, 2010 8:53 pm

Link generator

by HansKeesom » Mon Nov 18, 2013 11:03 pm

A tool that generates al links to all panoramas and groups into a text file so I can easily send them to customers.

Saves me going through index.xml looking for <scene name="pano text

no avatar
mediavets
Moderator
 
Posts: 14164
Joined: Wed Nov 14, 2007 2:12 pm
Location: Isleham, Cambridgeshire, UK.

Re: Link generator

by mediavets » Mon Nov 18, 2013 11:20 pm

HansKeesom wrote:A tool that generates al links to all panoramas and groups into a text file so I can easily send them to customers.

Saves me going through index.xml looking for <scene name="pano text


Clicking on the 'i' icon in the panorama properties - see screenshot - will reveal the panoID.
Attachments
1-ptp2b4-panoid.jpg

no avatar
HansKeesom
Member
 
Posts: 2154
Joined: Mon Jul 19, 2010 8:53 pm

Re: Link generator

by HansKeesom » Tue Nov 19, 2013 11:43 pm

Still a bit to much work when 30 panoramas in tour.

User avatar
bdd
Kolor Team
 
Posts: 1744
Joined: Tue Jan 18, 2011 4:05 pm

Re: Link generator

by bdd » Thu Nov 21, 2013 10:19 am

What can be easily done is a new HTML template containing all the links inside the tour above or on the left of the tour.

User avatar
benji33
Kolor Team
 
Posts: 2781
Joined: Tue Apr 09, 2013 10:59 am
Location: France

Re: Link generator

by benji33 » Thu Nov 21, 2013 11:53 am

Generate an html file into your panotour user directory html (Edit > Open user directory).

Add this code into the file created :
Code: Select all
<!DOCTYPE html>
<html>
   <head>
      <meta charset="utf-8" />
      <title>List of Panorama ID</title>
   </head>
   <body>
{% if project.panoGroups.count %}

{% for group in project.panoGroups %}
{% if group.isExplicit %}
   <p>
   <b>Group</b>
   <br />
   ID : {{group.tourId}}
   <br />
   Title : {{ group.description.name }}
   <br />
   Main scene : {{ group.mainPanoTourId }}
   <br />
   <hr />
   </p>
{% endif %}

 {% for pano in group.panos %}
   <p>
   Panorama name : {{ pano.description.name }}
   <br />
   Panorama ID : {{pano.tourId}}</p>
   <hr />
  {% endfor %}

  <br />
  <br />
{% endfor %}

{% endif %}
   </body>
</html>


Reload panotour and use the new template into the build window.

no avatar
HansKeesom
Member
 
Posts: 2154
Joined: Mon Jul 19, 2010 8:53 pm

Re: Link generator

by HansKeesom » Thu Nov 21, 2013 8:14 pm

Cool, but this is just a list, I would like to have it immediately as http://-links

User avatar
benji33
Kolor Team
 
Posts: 2781
Joined: Tue Apr 09, 2013 10:59 am
Location: France

Re: Link generator

by benji33 » Fri Nov 22, 2013 9:24 am

as ?

no avatar
HansKeesom
Member
 
Posts: 2154
Joined: Mon Jul 19, 2010 8:53 pm

Re: Link generator

by HansKeesom » Sat Nov 23, 2013 12:48 am

As all the addresses of each individual panorama as they can be linked to when online.

So a list with links like this
..................
Group Beijum
Panorama Buiten
http://alsofjeerbent.nl/panoramas/Sport ... ne=pano415
.................


or at least

..................
Group Beijum
Panorama Buiten
http://127.0.0.1/index.html?startscene=pano415
.................


Return to Panotour Future

Who is online

Users browsing this forum: No registered users and 1 guest

cron