We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 4172
    • 5,888 Posts
    Quote from: aesmith at Dec 29, 2010, 05:25 PM


    I vote we get the "use right click" added to the wiki docs.


    added ’you get a context-menue when you right-click on a grid-row’ to the wiki.
      -------------------------------

      you can buy me a beer, if you like MIGX

      http://webcmsolutions.de/migx.html

      Thanks!
      • 21872
      • 95 Posts
      This is really cool, but when I edit a grid item after creating it, the title and description are gone.

      I’m using the example property set and snippet and have only changed the labels on the input fields. Nothing else seems like it could be wrong. Here are my settings exported from the template variable properties tab, along with a bunch of screenshots.

      [{"name":"formtabs","desc":"","xtype":"textarea","options":[],"value":"[{\"caption\":\"Info\", \"fields\": [{\"field\":\"title\",\"caption\":\"Tab Title\"}, {\"field\":\"description\",\"caption\":\"Tab Pane Content\",\"inputTV\":\"richtext\"}]  }, {\"caption\":\"Image\", \"fields\": [{\"field\":\"image\",\"caption\":\"Image\",\"inputTV\":\"image\"}] }]","lexicon":null,"overridden":false,"desc_trans":"","menu":null},{"name":"columns","desc":"","xtype":"textarea","options":[],"value":"[{\"header\": \"Title\", \"width\": \"160\", \"sortable\": \"true\", \"dataIndex\": \"title\"}, {\"header\": \"Image\", \"width\": \"50\", \"sortable\": \"false\", \"dataIndex\": \"image\",\"renderer\": \"this.renderImage\"}]","lexicon":null,"overridden":false,"desc_trans":"","menu":null}]


      Chrome 8.something on Windows 7, if that’s relevant.
        • 4172
        • 5,888 Posts
        hmm...
        your properties are ok. I tested them and it works on mine.

        do you see the query string parameter ’record_json’ and the responded content with chrome-developer-tools?
          -------------------------------

          you can buy me a beer, if you like MIGX

          http://webcmsolutions.de/migx.html

          Thanks!
          • 21872
          • 95 Posts
          I do. Switching to Firebug’s net panel (easier to read), I can see all the params and the full response, and I think I either see the culprit or modx + extjs is even more mind boggling complex than I already find it. The TV in question is #23 and is comprised of 3 separate TV, as you instructed in your example. So maybe this is deliberate tv2300000001, tv2300000002, tv2300000003? It’s the only thing I can find, besides Ext itself, that looks strange.

          The first part of the response includes a hidden input:
          <input type="hidden" class="mulititems_grid_item_fields" name="mulititems_grid_item_fields" value='[{"field":"title","caption":"Tab Title","tv_id":2300000001,"array_tv_id":"2300000001[]"},{"field":"description","caption":"Tab Pane Content","inputTV":"richtext","tv_id":2300000002,"array_tv_id":"2300000002[]"},{"field":"image","caption":"Image","inputTV":"image","tv_id":2300000003,"array_tv_id":"2300000003[]"}]' />


          You also pass some sort of configuration object to a load method with the same value:
          var fld2300000003 = MODx.load({
          
              xtype: 'modx-panel-tv-image'
              ,renderTo: 'tv-image-2300000003'
              ,tv: '2300000003'
              ,value: ''
              ,width: '97%'
          
              ,listeners: {ETC}
          });


          Here are the parameters:
          HTTP_MODAUTH	modx4d12a2bcdcc3c6.14861705
          action	mgr/fields
          class_key	modDocument
          itemid	0
          record_json	{"title":"Tab One","description":"<h2>Tab Content</h2>\n<p>Lorem ipsum dolor sit amet, ...ETC...</p>","image":"assets/resources/images/placeholders/dummyimage.png"}
          tv_id	23
            • 4172
            • 5,888 Posts
              -------------------------------

              you can buy me a beer, if you like MIGX

              http://webcmsolutions.de/migx.html

              Thanks!
              • 21872
              • 95 Posts
              That does seem to work, thanks! Sorry I missed the earlier post.
                • 20546
                • 74 Posts
                Since I changed the filemanager systemsettings I had problems with thumbnail generation on image-tv’s.
                I fixed it with following patches: http://bugs.modx.com/issues/3197

                But there is still a problem with the multiItemsGridTV. Is there already a solution out there to fix it?
                  • 21872
                  • 95 Posts
                  New bug. If you enter content into a multiitemsgridtv then remove it, the entry in modx_site_tmplvar_contentvalues remains as []. It would be better if the row were removed, since this complicates using the If addon to test whether there’s anything in the TV.
                    • 5340
                    • 1,624 Posts
                    Anyone successfully managed to set this on 2.0.7?
                    I need a similar solution to the imagelist version but with sort capability
                    Here’s the imagelist version
                    http://modxcms.com/forums/index.php/topic,52539.msg304271.html#msg304271


                    Thanks
                      • 5340
                      • 1,624 Posts
                      Managed to install it but I can’t seem to upload an image

                      See attached.

                      I’d also like to remove the Description and replace it with the Image field. I only need these 2 fields.

                      Also what’s the deal with:
                      Create richtext-TV

                      * name: richtext
                      * input-type: Richtext

                      I can’t see any a rich text box except on the content area


                      Thanks