We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 44601
    • 18 Posts
    I'm trying to follow the very first MIGX tutorial and I don't understand one part:

    http://rtfm.modx.com/extras/revo/migx/migx.backend-usage

    We're done with the first nested JSON string. We can now see that there is a second tab -- this one has a label of "Image" and specified an inputTVtype of "image". To specify a Media Source for the image, add another key "sourceFrom":"migx" and assign the MIGx TV to a media source using the TV's Media Sources tab.

    I have this:


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


    But when I go to the TV's Media Sources tab the only option is web, which I uploaded as an attachment.

    When I go onto the data entry step I can add data in, but not images:
    http://rtfm.modx.com/extras/revo/migx/migx.data-entry
    And when I try to to the frontend step nothing loads.
    http://rtfm.modx.com/extras/revo/migx/migx.frontend-usage

    Any help is greatly appreciated as I've searched the forms and can't seem to find this problem.

    This question has been answered by irro334. See the first response.

      Be well!
    • When you create the MIGX TV, in its Media Source tab specify the media source for it to use. By default it's using the Filesystem source. It's the field at the right, the "Source" field; the "web" is the context, which is what you want in order to access files.

      It's a little buggy, you'll need to click on the field twice to get it to stay open.
        Studying MODX in the desert - http://sottwell.com
        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
        Join the Slack Community - http://modx.org
        • 44601
        • 18 Posts
        When I double click "Filesystem" the pop-up comes up, but filesystem is the only option. I don't have an option for "web".

        I uploaded a screenshot as an attachment.
          Be well!
          • 44601
          • 18 Posts
          So I randomly stumbled across a tutorial explaining how to add new media sources. I didn't know that I was supposed to create the MIGX media source first, because that is not in the tutorial.

          Or was it supposed to be created automatically when I installed Migx and there was an error?
            Be well!
            • 4172
            • 5,888 Posts
            You don't need to use mediasources.
            Then you can skip that step.

            But if you want to use a specific path to your images, than you would create a new mediasource, which points to that path.
              -------------------------------

              you can buy me a beer, if you like MIGX

              http://webcmsolutions.de/migx.html

              Thanks!
            • Media sources are not specific to MIGX, they are system-wide elements. You can use them for file and image TVs, and you can use them to limit what files users can see. You can also use them to access files on remote servers, like the provided driver for Amazon S3.
                Studying MODX in the desert - http://sottwell.com
                Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
                Join the Slack Community - http://modx.org
                • 44601
                • 18 Posts
                How do I add an image in the MIGX TV? I can add in the title and description, but I have no way to add any images.

                *attachment modxmigx3.jpg*
                *attachment modxmigx4.jpg*

                When I try to use the front end code from
                http://rtfm.modx.com/extras/revo/migx/migx.frontend-usage

                <ul>
                  [[!getImageList? 
                    &tvname=`myMIGXtv`
                    &tpl=`@CODE:<li>[[+idx]]<img src="[[+image]]"/><p>[[+title]]</p></li>
                  `]]
                </ul>


                Nothing actually shows when I try to view the page. I checked view source with chrome and there is no code at all.

                  Be well!
                  • 44601
                  • 18 Posts
                  Finally!

                  I have the TV working, I can upload and insert Images! Thanks for your help!

                  I still can't get them to display when I try to view the page tho.
                    Be well!
                  • discuss.answer
                    • 44601
                    • 18 Posts
                    And I have it! Yay..

                    I was confused by the article where it said

                    add another key "sourceFrom":"migx"

                    I actually added it to the Json.

                    I deleted it and went back and fixed my templates and everything worked.

                    Thanks for your help guys!
                      Be well!