We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 36573
    • 173 Posts
    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>
    
    ]
      Everything I know I learned on the internet. Saved me thousands in College tuition,
      • 4172
      • 5,888 Posts
      what is the json-output of that TV, which you get with

      [[*Courses]]
        -------------------------------

        you can buy me a beer, if you like MIGX

        http://webcmsolutions.de/migx.html

        Thanks!
        • 36573
        • 173 Posts
        Quote from: Bruno17 at Dec 01, 2015, 03:46 PM
        what is the json-output of that TV, which you get with

        [[*Courses]]

        I'm not sure what your looking for. The output is set to default.
          Everything I know I learned on the internet. Saved me thousands in College tuition,