fisheye/module-modal 1.0.0

A Magento 2 module that adds a reusable modal component that can be configured using layout XML arguments.

Type

magento2-module

License

MIT

Requires
Requires (dev)

None

Suggests

None

Provides

None

Conflicts

None

Replaces

None

Fisheye_Modal

Overview

A Magento 2 module that adds a reusable modal component that can be configured using layout XML arguments.

Note: this module was created as an example to support the talk 'Level up your layout' presented at Mage Titans MCR 2018, but is based on a real world implementation.

Features

  • Utilises Magento's Modal jQuery widget
  • Facilitates creation of modal components via layout XML which can be configured by passing arguments
  • Configuration options include: link text, modal title, modal type and more. Click here a full list of arguments.
  • Content for modals must be passed in as one or more child blocks using layout XML

Compatibility

  • Magento Open Source / Commerce Edition 2.2.x
  • Supports Magento 2 Full Page Cache (including Varnish)

Installation

composer require fisheye/module-modal
php bin/magento module:enable Fisheye_Modal
php bin/magento setup:upgrade

Contributing

Issues, forks and pull requests welcomed :)