aijko / aijko-widgetimagechooser

Aijko_WidgetImageChooser adds the Magento image chooser to widgets
58 stars 28 forks source link

No Magento 1.9.3 compatibility #17

Open Lmbrtz opened 8 years ago

Lmbrtz commented 8 years ago

Hi there,

I have just tried to use your extension with Magento 1.9.3, but the image upload buttons are not showing (image browsing works though). I tried it with Magento 1.9.2.4 and that works fine.

Just wanted to let you know. Maybe you can find a fix for it?

just-tom commented 8 years ago

+1 - it seems the module is still relying on the old uploading method which is now deprecated

just-tom commented 8 years ago

Fixed the issue - see https://github.com/aijko/aijko-widgetimagechooser/pull/19 - hopefully maintainer will accept and merge

DevertNet commented 8 years ago

Here is a fix for your custom adminhtml layout xml file. E.g. if you don't want to modify the original module. Tested with 1.9.2.2

<?xml version="1.0"?>
<layout>
    <!-- Fix Aijko_WidgetImageChooser for patch 8788 -->
    <adminhtml_widget_instance_edit>
        <reference name="head">
            <action method="addJs"><script>lib/uploader/flow.min.js</script></action>
            <action method="addJs"><script>lib/uploader/fusty-flow.js</script></action>
            <action method="addJs"><script>lib/uploader/fusty-flow-factory.js</script></action>
            <action method="addJs"><script>mage/adminhtml/uploader/instance.js</script></action>
        </reference>
    </adminhtml_widget_instance_edit>
    <!-- Fix Aijko_WidgetImageChooser for patch 8788 -->
    <adminhtml_cms_wysiwyg_images_chooser_index>
        <reference name="wysiwyg_images.uploader">
            <action method="setTemplate"><template>media/uploader.phtml</template></action>
             <block name="additional_scripts" type="core/template" template="cms/browser/content/uploader.phtml"/>
        </reference>
    </adminhtml_cms_wysiwyg_images_chooser_index>
</layout>