We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 12410
    • 353 Posts
    Hi
    Using http://rtfm.modx.com/display/ADDON/MIGX.Backend-Usage syntax but I want the image field to open the Modx Browser at assets/uploads. Unfortunately it opens at the root instead.
    How do I change this as the Media Source points to assets/uploads and image TV works correctly as a standalone field. Media source path gets ignore in migx?

    Thanks

    Revo 228, PHP 5.4, Ubuntu 12, MySQL 5 - latest Migx [ed. note: howster last edited this post 13 years, 2 months ago.]
      • 4172
      • 5,888 Posts
      you can try to put the mediasource to your MIGX - TV and set sourceFrom to migx

      [
      {"caption":"Info", "fields": [
          {"field":"title","caption":"Title"},
          {"field":"description","caption":"Description","inputTVtype":"richtext"}
      ]},
      {"caption":"Image", "fields":[
          {"field":"image","caption":"Image","inputTVtype":"image","sourceFrom":"migx"}
      ]}
      ]
      
      


      or use a helper - image - TV and put the mediasource to this TV

      [
      {"caption":"Info", "fields": [
          {"field":"title","caption":"Title"},
          {"field":"description","caption":"Description","inputTVtype":"richtext"}
      ]},
      {"caption":"Image", "fields":[
          {"field":"image","caption":"Image","inputTV":"yourImageTV","sourceFrom":"tv"}
      ]}
      ]
      
      
        -------------------------------

        you can buy me a beer, if you like MIGX

        http://webcmsolutions.de/migx.html

        Thanks!
        • 12410
        • 353 Posts
        Quote from: Bruno17 at Jul 16, 2013, 09:59 AM
        you can try to put the mediasource to your MIGX - TV and set sourceFrom to migx

        [
        {"caption":"Info", "fields": [
            {"field":"title","caption":"Title"},
            {"field":"description","caption":"Description","inputTVtype":"richtext"}
        ]},
        {"caption":"Image", "fields":[
            {"field":"image","caption":"Image","inputTVtype":"image","sourceFrom":"migx"}
        ]}
        ]
        
        





        perfect Bruno - this worked! Thanks
          • 12410
          • 353 Posts
          Hi Bruno,
          Ok back again. Small issue with getting image to render in manager migx grid

          Pls see gridpng.jpg screenshot. Thumb doesn't render. I just get a file path. <img src... missing or something.

          [
          {"caption":"Info", "fields": [
              {"field":"title","caption":"Title"},
              {"field":"description","caption":"Description","inputTVtype":"richtext"}
          ]},
          {"caption":"Image", "fields":[
              {"field":"image","caption":"Image","inputTVtype":"image","sourceFrom":"migx"}
          ]}
          ]



          [
          {"header": "Title", "width": "100", "sortable": "true", "dataIndex": "title"},
          {"header": "Image", "width": "150", "sortable": "false", "dataIndex": "image","renderer": "this.renderImage"}
          ]


          Media source config also attached. Perhaps a system setting?

          Any help here please. I need the thumbnail to render in the gridpng.jpg screenshot too.

          Thanks
          [ed. note: howster last edited this post 13 years, 2 months ago.]
            • 12410
            • 353 Posts
            Anyone? Thanks
              • 12410
              • 353 Posts
              Hi Bruno/All,
              Is the absence of a thumbnail a bug as per screenshots?
              Thanks
                • 12410
                • 353 Posts
                FYI:
                This specifically worked for me with a custom media source

                Form Tabs:
                [
                {"caption":"Info", "fields": [
                    {"field":"title","caption":"Title","description":"Title for the image."}, 
                    {"field":"description","caption":"Description","inputTVtype":"richtext"}
                ]}, 
                {"caption":"Image", "fields":[
                    {"field":"image","caption":"Image","inputTV":"image","sourceFrom":"migx"}
                ]}
                ] 


                Grid Columns
                [
                {"header": "Title", "width": "160", "sortable": "true", "dataIndex": "title"}, 
                {"header": "Image", "width": "50", "sortable": "false", "dataIndex": "image","renderer": "this.renderImage"}
                ]


                May help someone else. Issue is with inputTVtype vs inputTV
                  • 4172
                  • 5,888 Posts
                  which version is the 'latest MIGX' so I can check that?
                    -------------------------------

                    you can buy me a beer, if you like MIGX

                    http://webcmsolutions.de/migx.html

                    Thanks!
                    • 12410
                    • 353 Posts
                    MIGX 2.5.2-pl