erskinedesign / ed.imageresizer.ee2_addon

EE2+ Version of the ED ImageResizer. Resizes, crops and caches images on the fly.
43 stars 12 forks source link

Does not seem to work with prettyphoto jquery plugin #15

Closed ianryde closed 13 years ago

ianryde commented 13 years ago

I might be overlooking something but....

WIth prettyphoto, you have to place the resized large image within the href target as follows:

{gallery}

  • {exp:ed_imageresizer image="{image}" maxWidth="50" maxHeight="50" alt="{image_title}"}
  • {/gallery}

    Is there any work around for this.

    Awesome plugin, really really useful!!!

    Thanks, Ian

    linssen commented 13 years ago

    Hi Ian, no problem: you can use the href_only parameter thus:

    <li>
        <a href="{exp:ed_imageresizer 
            image="{image}"
            maxWidth="500"
            maxHeight="500"
            alt="{image_title}"
            href_only="yes"
            }" rel="prettyPhoto">
            {exp:ed_imageresizer
                image="{image}" 
                maxWidth="50" 
                maxHeight="50" 
                alt="{image_title}"
                }
        </a>
    </li>
    {/gallery}
    ianryde commented 13 years ago

    Thank you for the lightning rapid response. Should have read the docs. :)

    Have a good weekend...

    Ian