Skip to content

Magento 2.1 Multiple Image Uploader vs Magento 2.2 Multiple Image Uploader #12168

@darabaig

Description

@darabaig

Preconditions
Magento 2.1.x
Magento 2.2.x
Magento Multiple Image Uploader
new events events magento admin

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

  1. Create a custom module with multiple image uploder on magento 2.1.8
  2. 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.
  3. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions