Custom Plugin Conditionals don't work with multiple elements  

This sub-forum is for discussing and reporting bugs on any content that is not available by default in Panotour, so this concerns custom HTML templates, extra plugins (both Kolor-provided and third-party), etc...

Ce sous-forum a été créé pour discuter et/ou rapporter des bugs sur tout contenu qui n'est pas disponible par défaut dans Panotour, donc cela concerne les templates HTML customisés, plugins supplémentaires, etc...
no avatar
New member
Topic author
Posts: 2
Likes: 1 post
Liked in: 0 post
Joined: Thu Feb 04, 2016 9:31 pm

Custom Plugin Conditionals don't work with multiple elements

by wandering213 » Mon Mar 20, 2017 11:28 pm

I've run into an issue with conditionals not being evaluated with in the plug_info.xml file. They work fine with one element in an element list but once another is added to the list they don't get evaluated at all this produces a confusing user interface. Here's an example of what type of code causes the issue:

Code: Select all
<plugin id="test" category="Advanced" name="tr:Test" description="test" version="2.1" isGraphical="true" multipleInstance="false">
      <group id="confgroup" name="tr:Pixel Perfect">
         <elementlist id="pictures" name="tr:Distorted hotspot images">
            <group id="picture_item">
               <bool id="isVideo" name="tr:Video" default="false" description="tr:Indicated that a video is being used" />
               <row id="default" conditionalParam="isVideo" conditionalValues="true">
                  <string id="voffset" name="tr:Pause Vertical Offset :" default="0"/>
                  <string id="hoffset" name="tr:Pause Horizontal Offset :" default="0" />
                  <string id="scale" name="tr:Button Scale (0 to 1):" default="1" />

      <template url="test.tmpl" />

I'm using PTP 257 on windows 10.

Who is online

Users browsing this forum: No registered users and 1 guest