You are not logged in.

Tuur

Sage

  • "Tuur" started this thread

Posts: 3,839

Location: Netherlands

Occupation: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer

  • Send private message

1

Tuesday, January 26th 2010, 1:28pm

include

Hi,

i've read some on the forum... but.. i'm unsure..

is it possible to include an xml on command..?

so, when close textfield include thumbs.xml or so??

i'm afraid not...

workaround?

Thanx

Tuur *thumbsup*

michel

Professional

Posts: 1,153

Location: ANDORRA

Occupation: TV

  • Send private message

2

Tuesday, January 26th 2010, 4:26pm

Hi Tuur,

i am not sure about what I am going to say...
Perhaps using loadxml() would be the way...
I need to try... Never used that function...

SAlut.

3

Wednesday, January 27th 2010, 11:30am

Hi,
is it possible to include an xml on command..?
no, sorry, that's not possible...


Perhaps using loadxml() would be the way...
no, loadxml() loads the xml as string/test,
that can be used for example from an plugin when the xml was generated dynamically,

e.g.

Source code

1
loadxml('<krpano> ... </krpano>');


best regards,
Klaus

Tuur

Sage

  • "Tuur" started this thread

Posts: 3,839

Location: Netherlands

Occupation: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer

  • Send private message

4

Wednesday, January 27th 2010, 1:53pm

oke that's clear..

what can i do to make things load later then in the first instance...

like 1000 thumbnails... and so on..
would be nice when it not loads with the first picture but for example when you close the intro text or so..

esspecialy for big tours with a lot of content i can imagine that that is nice..

maybe remove plugin but i thoink it'snot possible to remove before loading...

?

Tuur *thumbsup*

Tourvista

Intermediate

Posts: 260

Location: Leicester UK

  • Send private message

5

Wednesday, January 27th 2010, 2:09pm

Hi!

Maybe calling an action to add a plugin after loadpano?

'loadpano' sets onstart actions for the next panorama

Don't load that plugin in the first panorama. Then, in the action to open other rooms, add an action to create a plugin:

Source code

1
2
3
4
5
6
7
onclick="loadpano(pano01.xml, null, MERGE, BLEND(2));
        action(new_plugin); "

<action name="new_plugin">
    addplugin(my_new_plugin);
   ...
</action>


Hope this helps

Tuur

Sage

  • "Tuur" started this thread

Posts: 3,839

Location: Netherlands

Occupation: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer

  • Send private message

6

Wednesday, January 27th 2010, 4:04pm

i was thinking about an delayed call on the include xml..


let's try..

Tuur *thumbsup*

mhobbi01

Beginner

Posts: 23

Location: New York

  • Send private message

7

Friday, July 16th 2010, 4:23am

I have a similar situation where I have an English Skin to my pano via english.xml which is loaded via <include> </include> command. Now when a "Spanish" or "French" button is clicked, I would like to replace the english.xml with the corresponding spanish.xml or french.xml

In other words is there a way to swap an included xml midway through the tour by an action?

Maz *confused*
Maz

Virtual Tour Group Inc.
VirtualTourGroup.com

8

Sunday, October 17th 2010, 2:43am

Hi,

has anyone solved this problem? It would be nice to have a dynamic include tag like this:
if(app == 'fb', <include url="%SWFPATH%/navigation.xml"/>);

BR
Kai

VN2009

Professional

Posts: 1,336

Location: Duluth MN

  • Send private message

9

Thursday, December 23rd 2010, 7:52pm

i have the need for something like this now as well. Klaus is there anyway to accomplish dynamically adding and removing xmls?

10

Wednesday, October 5th 2016, 12:09pm

I have a similar situation where I have an English Skin to my pano via english.xml which is loaded via </include> command. Now when a "Spanish" or "French" button is clicked, I would like to replace the english.xml with the corresponding spanish.xml or french.xml

In other words is there a way to swap an included xml midway through the tour by an action?

Hey. Getting it done?

Umalo

Professional

Posts: 1,051

Location: Osijek, Croatia, EU

  • Send private message

11

Saturday, October 8th 2016, 11:57am

<include url="some_name.xml" if="varialble_name === 'enabled'" />

take care to initiate variable_name before Krpano is started in html or as parameter

12

Wednesday, December 14th 2016, 1:53am

dynamic skin

Can this same function be used to load device specific skins out of tour.xml?

ie. <include url="skin/vtourskin.xml" if="device.desktop == 'true'" />
<include url="skin/mtourskin.xml" if="device.mobile or tablet == 'true'" />

Umalo

Professional

Posts: 1,051

Location: Osijek, Croatia, EU

  • Send private message

13

Wednesday, December 14th 2016, 5:26pm

Source code

1
<include url="something.xml" devices="desktop" />

Source code

1
<include url="table_mobile_something.xml" devices="touch" />

See more here