-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Description
Preconditions
Magento 2.1.x
Magento 2.2.x
Magento Multiple Image Uploader

In magneto 2.2 the multiple product image up-loader block has been moved from layout to UI component form. To make it compatible with magento-2.2 I made the required changes in my custom module and it worked for me. But, when I reinstalled the module on (magneto 2.1.8), it does not recognize the block and settings nodes. Is it not backward compatible? What if we wish to run the same module on both Magento 2.2 and 2.1 ? Are there any module settings where we can change the format for different versions? How can we place a check or condition because in both version the block is placed at two different locations.
Steps to reproduce
- Create a custom module with multiple image uploder on magento 2.1.8
- Install the same module on magento 2.2 -the multiple image uploader will not be visible in the Ui Form . Now to fix it move the block form layout xml to Ui form in a similar fashion as it has been done in magento 2.2 core files. It will work fine.
- Next , if we re-install the working module from magento 2.2 on to a freshly installed magento2.1.8 you will get the following errors.
Expected result
Able to use multiple product image uploader in a custom module in both version of magento i.e . Magento 2.1 && Magento 2.2
Actual result
The requested component ("settings") is not found. Before using, you must add the implementation.
The requested component ("block") is not found. Before using, you must add the implementation.