We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 39498
    • 169 Posts
    I have some problem gettin a propper output from a migx tv, this is my tab config:

    [
    {"caption":"Date & Time", "fields": [
    {"field":"datetime","caption":"Date & Time","inputTVtype":"date"},
    {"field":"cat","caption":"Kats","inputTV":"mycats"}
    ]}
    ]


    The db entry locks ok. But the rendering with the img snippet does not output cat. do I need a renderer?
      • 10208 ☆ A M B ☆
      • 1,780 Posts
      What does the grid columns config and the snippet call itself look like? Can you post them both?

      Also, is the image TV attached to any template? It should not be, if so.
        Frogabog- MODX Websites in Portland Oregon
        "Do yourself a favor and get a copy of "MODX - The Official Guide" by Bob Ray. Read it.
        Having server issues? These guys have MODX Hosting perfected - SkyToaster
        • 39498
        • 169 Posts
        the grid:
        [
        {"header": "Date & Time", "width": "50", "sortable": "true", "dataIndex": "datetime","renderer": "this.renderDate"},
        {"header": "Kat", "width": "50", "sortable": "false", "dataIndex": "cat"}
        ]


        snippet:
        <ul>
          [[!getImageList? 
            &tvname=`datetime`
            &tpl=`migxlist`
        	&sort=`[{"sortby":"datetime","sortdir":"ASC"}]`
        	]]
        </ul>


        the chunk:
        <li>[[+datetime:strtotime:date=`%a %e. %B %Y %H:%M`]] [[+cat]]</li>


        a json db string
        [{"MIGX_id":"1","datetime":"2013-05-23 08:52:18"},{"MIGX_id":"2","datetime":"2013-04-26 20:43:50","cat":"Kat1"}] 



        When I take out the
        ,"inputTV":"mycats"

        from the tab definition [[+cat]] gets displayed.
          • 39498
          • 169 Posts
          ok,ok, stupido.
          the tv must not be attached to the template (took this wrong). For what reason ever.
            • 4172
            • 5,888 Posts
            this is because of modx is trying to process the mycats-TV from the resource (or something in that direction), not the one from MIGX when assigned to the resource's template.
              -------------------------------

              you can buy me a beer, if you like MIGX

              http://webcmsolutions.de/migx.html

              Thanks!