We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 41647
    • 49 Posts
    Hi, it's me again.
    I'm working with the following structure:

    I have a migxTV which manages layoutboxes.
    Some of those boxes contain migxTVs with files, for example images.
    Now as I changed my default mediasource to a custom directory I have no settings made which could cause trouble.
    Everything works fine, images are rendered fine in the backend-preview.
    But when I do my getImageList IN my getImageList in the frontend, I do not get the whole path I need.

    for example:
    file is in "assets/customer/images/image1.jpg" but my output is only "images/image1.jpg".
    Where do i have to set my mediasource?
    In the backend, when rendering the preview it says "source=1", which is correct.

    BTW: the same TV works perfectly, when it is not nested.

    greetings,
    janein
      • 4172
      • 5,888 Posts
      the option, which does work for sure is to put the path into your tpl-chunk:
      assets/customer/[[+yourimage]]
        -------------------------------

        you can buy me a beer, if you like MIGX

        http://webcmsolutions.de/migx.html

        Thanks!
        • 41647
        • 49 Posts
        yeah, I've thought of that too.
        It's not the best way, but if you also don't know anything better, I think I'll go with that ;-)
          • 4172
          • 5,888 Posts
          maybe its possible to give the inner getImageList-call also a TV-name of a MIGX-TV which has the correct mediasource configured or any of its inner image-TVs or image-TV-fields with the corresponding fieldname have the correct mediasource assigned.
          There are ways for sure to get the configured mediasource, but I would need to check that myself.
            -------------------------------

            you can buy me a beer, if you like MIGX

            http://webcmsolutions.de/migx.html

            Thanks!
            • 36926
            • 701 Posts
            Anyone find a solution for this? Other than hard coding the path into the tpl.
              • 4172
              • 5,888 Posts

              maybe its possible to give the inner getImageList-call also a TV-name of a MIGX-TV which has the correct mediasource configured or any of its inner image-TVs or image-TV-fields with the corresponding fieldname have the correct mediasource assigned.
              There are ways for sure to get the configured mediasource, but I would need to check that myself.

              I think, this could work. Didn't test it.
                -------------------------------

                you can buy me a beer, if you like MIGX

                http://webcmsolutions.de/migx.html

                Thanks!