I have a list of TVs assigned to a template with course details. One of the TVs is courses. This shows the multiple codes, dates, times, and weekdays that the course is available. The weekdays is setup as a checkbox M T W TH F to select which days the class is on. This works fine and shows in the grid the correct days that are chosen, but when I use getImageList to call the data using a chunk as a template it shows as though everyday was selected.
PS: I'm also having an issue with the daterange call in the chunk. It worked fine when it was just a TV in my template but now that I had to make it work with multiple times using migx it's not working. If someone has an idea great, but I'm just going to change the start and ends to seperate TVs to solve this.
{"caption":"Courses", "fields": [
{"field":"code","caption":"Code"},
{"field":"sedate","caption":"Dates","inputTV":"pr_SEdates"},
{"field":"setime","caption":"Times","inputTV":"pr_SEtime"},
{"field":"days","caption":"Days","inputTV":"pr_classdays"},
{"field":"adddays","caption":"Additional Days or Times"}
]}
]
[
{"header": "Code", "width": "120", "sortable": "true", "dataIndex": "code"},
{"header": "Dates", "width": "120", "sortable": "false", "dataIndex": "sedate"},
{"header": "Times", "width": "120", "sortable": "false", "dataIndex": "setime"},
{"header": "Days", "width": "120", "sortable": "false", "dataIndex": "days"},
{"header": "Additional", "width": "120", "sortable": "false", "dataIndex": "adddays"}
[[!getImageList?&tvname=`Courses`&tpl=`coursesTpl`&docid=`[[*id]]`]]
<td><p>[[+code]]</p></td>
<td><p>[[daterange?&tvname=`pr_SEdates`&format=`%B | %d, |%Y`&separator=` to `&locale=`utf8_general_ci`]]</p></td>
<td><p>[[+setime]]</p></td>
<td><p>[[+days]] <em style="font-size:12px;">*[[+adddays]]</em></p></td>
]