We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 24629
    • 370 Posts
    when using a checkbox as a TV, for instance for a TV 'active' the value is either '1' or EMPTY.
    when the value is empty the tick image is not rendered in the grid . there is just an 'undefined' link there.
    I think this is because in grid.inc.config.php on line 297 there is no case '' in the switch statement.
    So when "active":"1" all goed wel but when "active":"" i get un undefined in the crostick

    Rdg
      • 36818
      • 119 Posts
      Hi Ralph

      Same problem here, along with another one.

      - solution for your issue:
        switch (val) {
              case 0:
              case '0':
              case false:

      add a
      case '':


      I also realised, that the renderer doesn't find the image. I just changed the following line:
      renderImage = '/assets/components/migx/style/images/cross.png';

      with
      renderImage = '../assets/components/migx/style/images/cross.png';

      then it points it to the right location.

      but my problem is another one:
      - Added a TV (with no access to any template
      - Integrated it in the MIGX-TV formtabs with
      {"field":"rahmen","caption":"Rahmen entfernen?","inputTV":"BildRahmen","inputTVtype":"checkbox"}

      - Grid Columns:
      {"header": "Rahmen entfernen?", "width": "", "sortable": "false", "dataIndex": "rahmen"}



      I can use the content of this MIGX-TV with the getImageList-Snippet, but the there is no output for the placeholder
      [[+rahmen]]
      . Or better, the values are not stored or not updated. I expect that there should be no output when the checkbox is not ticked, and a "1" when its ticked. But no luck...

      Do you have any idea?

      Best wishes.
      Fabian
        • 19604 ☆ A M B ☆
        • 179 Posts
        Adding "case '':" works just fine, but it is not yet implemented in any of the latest versions of MIGX. :-(
          MINDEFFECTS – DESIGN for PRINT, WEB and MEDIA
          http://twitter.com/mindeffects · http://www.facebook.com/mindeffects · http://www.youtube.com/mindeffects/ · skype://mindeffects_oliver
          • 4172
          • 5,888 Posts
            -------------------------------

            you can buy me a beer, if you like MIGX

            http://webcmsolutions.de/migx.html

            Thanks!