Hi there,
I have a problem with IF action when I use this:
Code
<action name="ifpluginintro1">
if(plugin[pluginintro1] !== null, action(pluginintro1););
</action>
as I can understand it checks if this plugin exists in the same xml document.
But it didn't work when I have this:
and the condition is in skin.xml, but the plugin is in intro.xml
I use one skin xml file for all panos, but some panos needs extras like intro. I want just to add actions in onxmlcomplete and onloadcomplete when I use intro.xml.
I tried this:
skin.xml:
Code
<events onxmlcomplete="action(ifpluginintro1);"/>
<events onloadcomplete="action(ifpluginintro2);" />
<action name="ifpluginintro1">
if(plugin[pluginintro1] !== null, action(pluginintro1););
</action>
<action name="ifpluginintro2">
if(plugin[pluginintro2] !== null, action(pluginintro2););
</action>
intro.xml:
Code
<krpano version="1.0.8">
<action name="pluginintro1">
...
</action>
<action name="pluginintro2">
...
</action>
</krpano>
But as I said it checks if there is such plugin in skin.xml.
When I don't use condition in skin.xml :
Code
<events onxmlcomplete="action(pluginintro1);"/>
<events onloadcomplete="action(pluginintro2);" />
It works fine when the pano uses intro.xml,
but it returns me errors if there is no intro.xml
May be the easiest way is just to suppress the error messages somehow...
What would you suggest me?