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

    On default highside template title is taken from title attribute and displayed on the big image. Look at \assets\plugins\directresize\configs\highslide.config.php
    $tpl = <<<HTML
    <a href="[+dr.bigPath+]" class="highslide" onclick="return hs.expand(this, {captionId: 'caption[+dr.id+]'})">
    	<img src="[+dr.thumbPath+]" width="[+dr.thumbWidth+]" height="[+dr.thumbHeight+]" /></a>
    <div class="highslide-caption" id="caption[+dr.id+]">
    [+dr.title+]
    </div>
    HTML;
    


    [+dr.title+] is a title attr. of a source image. Add it to this template again and you get this title on a small image.

    $tpl = <<<HTML
    <a href="[+dr.bigPath+]" class="highslide" onclick="return hs.expand(this, {captionId: 'caption[+dr.id+]'})">
    	<img src="[+dr.thumbPath+]" width="[+dr.thumbWidth+]" height="[+dr.thumbHeight+]" />
    	<div class="some_class">[+dr.title+]</div>
    </a>
    <div class="highslide-caption" id="caption[+dr.id+]">
    [+dr.title+]
    </div>
    HTML;
    


    Use [+dr.alt+] if you want to take alt attr. of a source image.
      DirectResize 0.9 beta. PHPThumb, sets of configurations, configuration, binded to specific path. No backward compatibility. | DirectResize 0.9. PHPThumb, наборы параметров, параметры, привязанные к определенным путям. Без обратной совместимости.

      Unfortunately, DirectResize project is closed. If you want to continue development, PM me for access to project page on Google Code. К сожалению, проект DirectResize закрыт. Если вы желаете продолжить разработки, обращайтесь через ПМ для получения доступа к репозиторию на Google Code.

      [PLUGIN] DirectResize - as Maxigallery but for single images :: Download :: [url=http://modxcms.com/forums/index.php/topic,21490]
      • 27680
      • 23 Posts
      Thanks Metaller - you solved my problem. Brilliant.
        • 3232
        • 380 Posts
        It seems that the only config file that does not interfere with the ajaxsearch snippet is the highslide config.

        Does anyone know of any other configs that won’t interfere with ajaxsearch?
          • 3232
          • 380 Posts
          So some images I am loading will be floated to the left or right. When direct resize processes the image it removes the class from the image. Is there anyway to preserve the image class?

          scratch that, found it in the readme file... [+dr.class+]
            • 7455
            • 2,204 Posts
            Hello Metaller,

            I am working on or new company website and for the portfolio I like to use GIF images,
            do you have an estimate on when the new version wil be released? and will it support GIF images?
            can I betatest for you?

            Dimmy
              follow me on twitter: @dimmy01
              • 19164
              • 1,215 Posts
              Hello, Dimmy.

              0.9 beta is ready now, but i still trying to write docs for it. And i’m not sure, that docs will available on english in the nearest future.

              But i think, that 0.9 beta will be released in few days. I hope you can use google to translate it.
                DirectResize 0.9 beta. PHPThumb, sets of configurations, configuration, binded to specific path. No backward compatibility. | DirectResize 0.9. PHPThumb, наборы параметров, параметры, привязанные к определенным путям. Без обратной совместимости.

                Unfortunately, DirectResize project is closed. If you want to continue development, PM me for access to project page on Google Code. К сожалению, проект DirectResize закрыт. Если вы желаете продолжить разработки, обращайтесь через ПМ для получения доступа к репозиторию на Google Code.

                [PLUGIN] DirectResize - as Maxigallery but for single images :: Download :: [url=http://modxcms.com/forums/index.php/topic,21490]
                • 19164
                • 1,215 Posts
                0.9.0 with PHPThumb is here. Please, read first message of this topic.
                  DirectResize 0.9 beta. PHPThumb, sets of configurations, configuration, binded to specific path. No backward compatibility. | DirectResize 0.9. PHPThumb, наборы параметров, параметры, привязанные к определенным путям. Без обратной совместимости.

                  Unfortunately, DirectResize project is closed. If you want to continue development, PM me for access to project page on Google Code. К сожалению, проект DirectResize закрыт. Если вы желаете продолжить разработки, обращайтесь через ПМ для получения доступа к репозиторию на Google Code.

                  [PLUGIN] DirectResize - as Maxigallery but for single images :: Download :: [url=http://modxcms.com/forums/index.php/topic,21490]
                  • 7455
                  • 2,204 Posts
                  exelend work i will implement and try this great new vesion and report back.
                    follow me on twitter: @dimmy01
                    • 13428 ☆ A M B ☆
                    • 1,031 Posts
                    Have an additional config for this great plugin (Maybe only for 0.8 - did not look into 0.9 quite now).

                    This config is using a MooTools 1.2 compatible Multibox. Nessesary scripts/images are included.

                    Regards
                    Jako
                      • 19164
                      • 1,215 Posts
                      Thank you. It will work in 0.8 only but can be translated to 0.9 very easy.
                        DirectResize 0.9 beta. PHPThumb, sets of configurations, configuration, binded to specific path. No backward compatibility. | DirectResize 0.9. PHPThumb, наборы параметров, параметры, привязанные к определенным путям. Без обратной совместимости.

                        Unfortunately, DirectResize project is closed. If you want to continue development, PM me for access to project page on Google Code. К сожалению, проект DirectResize закрыт. Если вы желаете продолжить разработки, обращайтесь через ПМ для получения доступа к репозиторию на Google Code.

                        [PLUGIN] DirectResize - as Maxigallery but for single images :: Download :: [url=http://modxcms.com/forums/index.php/topic,21490]