We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 22840
    • 1,572 Posts
    Hi All,

    Is it possible to hide the image thumbs from the browser popup when uploading images via a tv / migx ?, all I need is the name to be present as the thumbs are causing a long wait when loading.

    Cheers
      • 4172
      • 5,888 Posts
      what about using a listbox-TV with @EVAL or @CHUNK - binding to select the file?
        -------------------------------

        you can buy me a beer, if you like MIGX

        http://webcmsolutions.de/migx.html

        Thanks!
        • 22840
        • 1,572 Posts
        Hi Bruno,

        It's all been setup now and is a massive site, the only issue we have is the amount of time it takes the thumbs to load as the client has added all the images to 1 folder ( a few thousand ) so the simplest solution would just be to hide the thumbs
          • 4172
          • 5,888 Posts
          ( a few thousand )
          ups, that doesn't sound good.


          its a hardcoded template
          https://github.com/modxcms/revolution/blob/v2.2.14-pl/manager/assets/modext/core/modx.view.js#L468

          so, without hacking, not possible, I think

          the generation of a thumb-link is depending on the setting 'imageExtensions'
          see:
          https://github.com/modxcms/revolution/blob/v2.2.14-pl/core/model/modx/sources/modfilemediasource.class.php#L782

          so, may be, changing the imageExtensions - setting for that mediasource could help
            -------------------------------

            you can buy me a beer, if you like MIGX

            http://webcmsolutions.de/migx.html

            Thanks!
            • 22840
            • 1,572 Posts
            Quote from: Bruno17 at Apr 29, 2014, 07:55 AM
            ( a few thousand )
            the generation of a thumb-link is depending on the setting 'imageExtensions'
            see:
            https://github.com/modxcms/revolution/blob/v2.2.14-pl/core/model/modx/sources/modfilemediasource.class.php#L782

            so, may be, changing the imageExtensions - setting for that mediasource could help

            Thanks Bruno,

            Removing the below from /manager/assets/modext/core/modx.view.js seems to have worked.

            ,'<div class="modx-pb-thumb"><img src="{thumb}" title="{name}" /></div>'


            Cheers
              • 40045
              • 534 Posts
              Actually had/have the same problem with one of my sites (radio station, complete database of all available songs with covers in one folder 2500+ images...it crashes the server when that folder has to be thumbnailed...), the easiest way to disable thumbnailing is to create a specific media source for that folder and set imageExtensions to an empty value, no need to hack the core.

              Which I also did for that site to circumvate the "dynamic" thumbnailing via a .php call with some get params, e.g phpthumb.php?param1=path etc. which prevents the browser from caching the thumbnails and then is responsible for a regeneration of these thumbs each time a folder has to be displayed in the media manager...using pThumb/Resizer/Imagine in addition (which is faster) + changed the core code to return an actually url to the cached thumbnail and not the url to the processor...