Bob Bright
05-15-2008, 10:17 PM
Hi Denis,
I'm not sure if anyone has requested something like this before, but it would be really great if FPP's XML specification allowed one to reference additional .xml files. What I have in mind is something like Server Side Includes in HTML, which are frequently used to embed snippets of code which don't change between pages.
As an example of where this would be useful, I use exactly the same code in all of my virtual tours to display a control bar at the bottom of the screen. Rather than replicating this code in the .xml file for every tour, I would like to be able to place it in a separate file ("controls.xml"), and then reference it with something like:
<hotspots>
...
<include url="/fpp/xml/controls.xml" />
...
</hotspots>
This would make my .xml files smaller (a minor consideration) and tidier/easier to read (a bigger consideration). But most importantly, if I want to make changes to my control bar, I could do it by changing a single file (a HUGE time saver).
I suspect that this would be quite easy for you to implement, and would be tremendously beneficial for many users.
Thanks for a great product!
Cheers,
BBB
BBBright@VictoriaVR.ca
I'm not sure if anyone has requested something like this before, but it would be really great if FPP's XML specification allowed one to reference additional .xml files. What I have in mind is something like Server Side Includes in HTML, which are frequently used to embed snippets of code which don't change between pages.
As an example of where this would be useful, I use exactly the same code in all of my virtual tours to display a control bar at the bottom of the screen. Rather than replicating this code in the .xml file for every tour, I would like to be able to place it in a separate file ("controls.xml"), and then reference it with something like:
<hotspots>
...
<include url="/fpp/xml/controls.xml" />
...
</hotspots>
This would make my .xml files smaller (a minor consideration) and tidier/easier to read (a bigger consideration). But most importantly, if I want to make changes to my control bar, I could do it by changing a single file (a HUGE time saver).
I suspect that this would be quite easy for you to implement, and would be tremendously beneficial for many users.
Thanks for a great product!
Cheers,
BBB
BBBright@VictoriaVR.ca