We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 41272
    • 9 Posts
    Hi Bruno,

    seems I cannot get the chunk renderer to work at all - I've tried setting things up with the MIGX configurator as well as with a self constructed JSON. This is the ouput from the configurator:

    {
            "formtabs":[
            {
              "MIGX_id":14,
              "caption":"Teaser",
              "print_before_tabs":"0",
              "fields":[
                {
                  "MIGX_id":14,
                  "field":"resID",
                  "caption":"Teaser",
                  "description":"Einen Teaser aus der Teaserdatenbank ausw\u00e4hlen",
                  "description_is_code":"0",
                  "inputTV":"TeaserResourceList",
                  "inputTVtype":"",
                  "validation":"",
                  "configs":"",
                  "restrictive_condition":"",
                  "display":"",
                  "sourceFrom":"config",
                  "sources":"",
                  "inputOptionValues":"",
                  "default":"",
                  "useDefaultIfEmpty":"0",
                  "pos":1
                }
              ],
              "pos":1
            }
          ],
          "contextmenus":"",
          "actionbuttons":"",
          "columnbuttons":"",
          "filters":"",
          "extended":{
            "migx_add":"Neuer Teaser",
            "disable_add_item":"",
            "add_items_directly":"",
            "formcaption":"",
            "update_win_title":"",
            "win_id":"",
            "maxRecords":"",
            "addNewItemAt":"bottom",
            "multiple_formtabs":"",
            "multiple_formtabs_label":"",
            "multiple_formtabs_field":"",
            "multiple_formtabs_optionstext":"",
            "multiple_formtabs_optionsvalue":"",
            "actionbuttonsperrow":4,
            "winbuttonslist":"",
            "extrahandlers":"",
            "filtersperrow":4,
            "packageName":"",
            "classname":"",
            "task":"",
            "getlistsort":"",
            "getlistsortdir":"",
            "sortconfig":"",
            "gridpagesize":"",
            "use_custom_prefix":"0",
            "prefix":"",
            "grid":"",
            "gridload_mode":1,
            "check_resid":1,
            "check_resid_TV":"",
            "join_alias":"",
            "has_jointable":"yes",
            "getlistwhere":"",
            "joins":"",
            "cmpmaincaption":"",
            "cmptabcaption":"",
            "cmptabdescription":"",
            "cmptabcontroller":"",
            "winbuttons":"",
            "onsubmitsuccess":"",
            "submitparams":""
          },
          "columns":[
            {
              "MIGX_id":1,
              "header":"ID",
              "dataIndex":"resID",
              "width":20,
              "sortable":"false",
              "show_in_grid":1,
              "renderer":"",
              "clickaction":"",
              "selectorconfig":"",
              "renderchunktpl":"",
              "renderoptions":"",
              "editor":""
            },
            {
              "MIGX_id":2,
              "header":"Name",
              "dataIndex":"renderered_resID",
              "width":50,
              "sortable":true,
              "show_in_grid":1,
              "renderer":"this.renderChunk",
              "clickaction":"",
              "selectorconfig":"",
              "renderchunktpl":"TEST",
              "renderoptions":"",
              "editor":""
            }
          ]
        }


    And this is what I've come up with before (I use ElementHelper to setup my TV's, so I'd rather like to keep things neat and clean). But this does not work either:

    {
            "formtabs": [
                {"caption":"Teaser", "fields":[
                    {"field":"resID","caption":"Teaser","inputTV":"TeaserResourceList"}
                ]}
            ],
            "columns": [
                {"header": "ID", "width": "20", "sortable": "false", "dataIndex": "resID"},
                {"header": "Name", "width": "50", "sortable": "true", "dataIndex": "rendered_resID", "renderer": "this.renderChunk", "renderchunktpl": "TEST"}
            ],
            "btntext": "Teaser hinzufügen"
        }


    Any idea what could be wrong here? I didn't even try FastFields (which is working just fine in the rest of the site) because not even "TEST" is getting rendered.

    Besides that everything works as expexted. I'm using modx 2.3.3 with MIGX 2.9.0 on PHP5.5.

    Thank you so much a great addon and your help!

    Paul
    [ed. note: phazzologic last edited this post 9 years, 2 months ago.]
      • 41272
      • 9 Posts
      Sorry to bump. But my problem still is not solved yet. Any hints into the right direction?

      Thanks in advance!