We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 51020
    • 670 Posts
    HI There,

    I have a media source for most images on my site, which is set as the default media source.
    I have one Migx TV which needs to use a different directory though. So I created a new Media Source, with the base url and path set to the correct folder, and assigned it to the Migx TV, but when the user tries to add a file, it still defaults to the Default media source.

    I've cleared the cache etc, but still defaults, but in the Migx TV, it definitely says that I ave assigned a different media source.

    Any ideas what i am doing wrong?

    Thank you!

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

      • 51020
      • 670 Posts
      UPDATE: I have even tested it by changing the TV Media Source to just 'File System' - but it STILL reverts to the Default Media Source, which is looking in another directory. I'm wondering id the default should be set to filesystem so that it doesn't override?
        • 4172
        • 5,888 Posts
        did you create the config for the MIGX-TV with the MIGX-CMP or did you just fill the formtabs and columns - fields of the TV?

        could you post your configs?
          -------------------------------

          you can buy me a beer, if you like MIGX

          http://webcmsolutions.de/migx.html

          Thanks!
          • 51020
          • 670 Posts
          Quote from: Bruno17 at Dec 18, 2017, 07:15 AM
          did you create the config for the MIGX-TV with the MIGX-CMP or did you just fill the formtabs and columns - fields of the TV?

          could you post your configs?

          Sorry - just formtab and columns - see config below:

          Form Tabs:
          [
          {"caption":"Info", "fields": [
          {"field":"title","caption":"Title"},
          {"field":"file","caption":"File","inputTVtype":"file"}
          ]}
          ]
          
          


          Columns:
          [
          {"header": "Title", "width": "60", "sortable": "false", "dataIndex": "title"}
          ]
          

          Then the Media Source is set in the Media Sources Tab along the top of the TV options.
          • discuss.answer
            • 4172
            • 5,888 Posts
            try this:

            [
            {"caption":"Info", "fields": [
            {"field":"title","caption":"Title"},
            {"field":"file",
             "caption":"File",
             "inputTVtype":"file",
             "sourceFrom":"config",
             "sources":"[{\"MIGX_id\":\"1\",\"context\":\"web\",\"sourceid\":\"1\"},{\"MIGX_id\":\"2\",\"context\":\"mgr\",\"sourceid\":\"1\"}]"
            }
            ]}
            ]


            change the source-id to yours.

              -------------------------------

              you can buy me a beer, if you like MIGX

              http://webcmsolutions.de/migx.html

              Thanks!
              • 51020
              • 670 Posts
              Quote from: Bruno17 at Dec 18, 2017, 03:13 PM
              try this:

              [
              {"caption":"Info", "fields": [
              {"field":"title","caption":"Title"},
              {"field":"file",
               "caption":"File",
               "inputTVtype":"file",
               "sourceFrom":"config",
               "sources":"[{\"MIGX_id\":\"1\",\"context\":\"web\",\"sourceid\":\"1\"},{\"MIGX_id\":\"2\",\"context\":\"mgr\",\"sourceid\":\"1\"}]"
              }
              ]}
              ]


              change the source-id to yours.


              Thanks I will try this. So that I understand, what is the migx_id and how come the values are repeated? I do t understand what they are all supposed to do.
                • 51020
                • 670 Posts
                Quote from: Bruno17 at Dec 18, 2017, 03:13 PM
                try this:

                [
                {"caption":"Info", "fields": [
                {"field":"title","caption":"Title"},
                {"field":"file",
                 "caption":"File",
                 "inputTVtype":"file",
                 "sourceFrom":"config",
                 "sources":"[{\"MIGX_id\":\"1\",\"context\":\"web\",\"sourceid\":\"1\"},{\"MIGX_id\":\"2\",\"context\":\"mgr\",\"sourceid\":\"1\"}]"
                }
                ]}
                ]


                change the source-id to yours.


                yes that worked great - thank you!
                Any idea why it's not honouring the selected Media Source in the settings though?
                The main thing is I have a solution!

                Thanks again!
                Andy
                  • 4172
                  • 5,888 Posts
                  maybe, this would also work, not sure:

                  [
                  {"caption":"Info", "fields": [
                  {"field":"title","caption":"Title"},
                  {"field":"file",
                   "caption":"File",
                   "inputTVtype":"file",
                   "sourceFrom":"migx"
                  }
                  ]}
                  ]
                  
                    -------------------------------

                    you can buy me a beer, if you like MIGX

                    http://webcmsolutions.de/migx.html

                    Thanks!
                    • 51020
                    • 670 Posts
                    Quote from: Bruno17 at Dec 19, 2017, 03:10 AM
                    maybe, this would also work, not sure:

                    [
                    {"caption":"Info", "fields": [
                    {"field":"title","caption":"Title"},
                    {"field":"file",
                     "caption":"File",
                     "inputTVtype":"file",
                     "sourceFrom":"migx"
                    }
                    ]}
                    ]
                    

                    Hmm Ok I'll have a play.