Skip to content

Adding values filters to media gallery grid

Sergii Ivashchenko edited this page Dec 18, 2019 · 1 revision

To add a filter to the media gallery grid the following steps should be performed:

  1. A column should be added to media_gallery_asset_grid. Requires modification of the following files:
MediaGalleryUi/etc/db_schema.xml
MediaGalleryUi/etc/db_schema_whitelist.json
  1. Magento\MediaGalleryUi\Model\UpdateAssetInGrid should be updated to add values to introduced column.
  2. Value or filter should be added and configured in the MediaGalleryUi/view/adminhtml/ui_component/media_gallery_listing.xml
Clone this wiki locally