Includexml seems like just what I was looking for, to let me load in new arrays and data in an xml file when I switch from one tour to another.
Yet when I do it, I don't seem to see the values. With an xml file with contents like:
<krpano><testval val="hello" />
<tii chap="Burning Man 2005" tname="burn05" gallery="BRC" />
<ti name='burn05/ccamp50' />
<ti name='burn05/bm05-ring' />
<ti name='burn05/palace-ccamp-10' />
<ti name='burn05/ccamp10' />
<ti name='burn05/ccamp22' />
<ti name='burn05/dicky' />
<ti name='burn05/temple-dreams' />
<ti name='burn05/temple-side' />
</krpano>
~
Alles anzeigen
If I do insertxml of this file, and attempt to print out values like ti[0].name or tii.tname or testval.val they are all empty (it prints the variable name not a value.)
I am of course in HTML5 mode with the latest 20.9
Previously I was trying to do it with loadpano and MERGE but that seems to delete the <image> tag, otherwise it would work. (It also re-runs various events but I could have gotten around that.)
The only other way I have found to do it is to have every image's XML file include the array with a filename with $tourname in it, but that include has to be done when loading the XML. So I have set the $tourname in the calling HTML and that works to define the first tour array, but does not let you switch tours as far as I can tell.
Any hints on where to look to make this work?