Page 1 of 1

[Solved] cgsi_convert and jQuery

Posted: Tue Dec 20, 2016 6:57 pm
by musicscore
Please some advise.

I created a news template and I use cgsi_convert to size the image

Code: Select all

{cgsi_convert filter_croptofit="260,146"}<img src="....>{/cgsi_convert}
This workst perfect.

Now I want to use a jQuery script on the same image.
(js file is attached)

Code: Select all

    <__script__>
        $(function() {
        
            $('.zooming').hoverZoom(); // Default
        }); 
    </__script>
So I change the img tag in the news template

Code: Select all

{cgsi_convert filter_croptofit="260,146"}<a class="zooming" href="{$entry->moreurl}" title="{$entry->title|cms_escape:htmlall}"><img src="{$entry->file_location}/{$field->displayvalue}" alt="thumbnail"/></a>{/cgsi_convert}
Without the cgsi_convert filter the jQuery scripts works but using the cgsi_convert the jQuery script stops working.

Because I do not know what the size is of the images I user uploads to use in the news article I need to crop2fit the image to 260,146 but I also want to use the jQuery script.

Please help.

[Solved] cgsi_convert and jQuery

Posted: Tue Dec 20, 2016 7:38 pm
by musicscore
Found the solution (after a couple of days breaking my mind).
Set Image Embedding Mode: None solved the problem.