Custom plugin: actionlist inside elementlist  

This forum is fully dedicated to Panotour / Panotour Pro bug reports as well as feature discussion.
User avatar
360-compunics-com-ni
Member
 
Topic author
Posts: 417
Likes: 15 posts
Liked in: 163 posts
Joined: Wed Dec 17, 2014 12:37 am
Location: León, Nicaragua
Info

Custom plugin: actionlist inside elementlist

by 360-compunics-com-ni » Fri Mar 31, 2017 11:41 pm

In a custom plugin i want to use an actionlist inside an elementlist, but it does not work as expected.
The use case: for a number of user-selectable files the corresponding actions shall be selectable individually (have attached a screenshot for clarification).

The elementlist works fine (numbered 1), and using the actionchooser an individual action can be assigned. But it is not possible to select multiple actions (numbered 2), nothing happens when the "+"-symbol is clicked.

This is the relevant definition:
Code: Select all
   <elementlist id="hspotlist" name="tr:Select hotspot images">
          <group id="hspotItem">
                <filechooser id="hspotfile" name="tr:File" default="" filters="images" allowRemote="false" />
     <actionlist id="hspotactions" name="tr:Set the action to be triggered by this hotspot" >
      <actionchooser id="hspotaction" name="tr:Action" description="tr:Actions triggered"/>
     </actionlist>
          </group>
   </elementlist>

And the relevant code:
Code: Select all
{% for hspot in p.hspotlist.elements %}
[...]
set(thisAction, '{%with hspot.hspotactions.actions as actions%}{% include 'calltemplate.tmpl' %}{%endwith%}');
[...]
{% endfor %}


Am i doing something wrong, or is it not possible?
Thanks in advance for your support.

(edited for clarification)
Attachments
AutoSpots-Actionlist.png
Out now: DeviceCheck for PTP plugins! https://www.kolor.com/forum/viewtopic.php?f=40&t=37446

Want to know how clients use your tours? Google Analytics Track Events plugin: http://www.kolor.com/forum/viewtopic.php?f=40&t=34442

Add actions to your hotspots: Hotspot Actionlist plugin: http://www.kolor.com/forum/viewtopic.php?f=40&t=35829

User avatar
bdd
Kolor Team
 
Posts: 2788
Likes: 14 posts
Liked in: 126 posts
Joined: Tue Jan 18, 2011 4:05 pm
Info

Re: Custom plugin: actionlist inside elementlist

by bdd » Mon Apr 03, 2017 9:33 am

Hello,

Sorry, you reached a limitation of our plugin parameters mechanism .

We are aware of this limitation, and we hope to find a solution for it in a future version.
It will not be fixed in a fix release, but only in a major release, as it needs a major change in our algorithms and in our graphical library.

Gérald

360-compunics-com-ni likes this post.

User avatar
360-compunics-com-ni
Member
 
Topic author
Posts: 417
Likes: 15 posts
Liked in: 163 posts
Joined: Wed Dec 17, 2014 12:37 am
Location: León, Nicaragua
Info

Re: Custom plugin: actionlist inside elementlist

by 360-compunics-com-ni » Mon Apr 03, 2017 3:13 pm

Hello Gérald,

thanks for your answer. It would be nice to have that possibility, although it's not a major issue because the main action works fine.

Greetings from León,
Michael
Out now: DeviceCheck for PTP plugins! https://www.kolor.com/forum/viewtopic.php?f=40&t=37446

Want to know how clients use your tours? Google Analytics Track Events plugin: http://www.kolor.com/forum/viewtopic.php?f=40&t=34442

Add actions to your hotspots: Hotspot Actionlist plugin: http://www.kolor.com/forum/viewtopic.php?f=40&t=35829


Who is online

Users browsing this forum: No registered users and 3 guests

cron