PHPackages                             fisheye/module-modal - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. fisheye/module-modal

AbandonedArchivedMagento2-module[Utility &amp; Helpers](/categories/utility)

fisheye/module-modal
====================

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

1.0.2(7y ago)92.7k4[1 issues](https://github.com/fisheyehq/module-modal/issues)MITPHP

Since Nov 7Pushed 7y agoCompare

[ Source](https://github.com/fisheyehq/module-modal)[ Packagist](https://packagist.org/packages/fisheye/module-modal)[ RSS](/packages/fisheye-module-modal/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (2)Dependencies (1)Versions (4)Used By (0)

Fisheye\_Modal
==============

[](#fisheye_modal)

Overview
--------

[](#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'](http://uk.magetitans.com/speakers/john-hughes/) presented at Mage Titans MCR 2018, but is based on a real world implementation.

Features
--------

[](#features)

- Utilises Magento's [Modal jQuery widget](https://devdocs.magento.com/guides/v2.2/javascript-dev-guide/widgets/widget_modal.html)
- 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](arguments.csv) a full list of arguments
- Content for modals must be passed in as one or more child blocks using layout XML

Usage
-----

[](#usage)

To create a modal component you need to create a block using `Fisheye\Modal\Block\Modal` as the class and `Fisheye_Modal::modal.phtml` as the template. Pass in the required and optional arguments from [arguments.csv](arguments.csv) and a child block that contains your content.

An example below shows adding a a block to the product page (note: this would need to be in a layout file with the handle `catalog_product_view.xml`) under the add to wishlist and compare links etc.

The required `linkText` value as well as a `modalTitle` for the modal to display once opened are passed in via arguments and a CMS block is added as a child block for the modal's content.

```

            My link text to trigger modal
            My modal title

                my_cms_block_id

```

Compatibility
-------------

[](#compatibility)

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

Installation
------------

[](#installation)

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

```

Contributing
------------

[](#contributing)

Issues, forks and pull requests welcomed :)

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance18

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~1 days

Total

3

Last Release

2742d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/43f3b3a59dc942417211200d258cff022a5208536f9965bf4de8bc1c369fefc8?d=identicon)[John Hughes](/maintainers/John%20Hughes)

---

Top Contributors

[![johnhughes1984](https://avatars.githubusercontent.com/u/3949917?v=4)](https://github.com/johnhughes1984 "johnhughes1984 (8 commits)")

---

Tags

fisheyemagento2magento2-module

### Embed Badge

![Health badge](/badges/fisheye-module-modal/health.svg)

```
[![Health](https://phpackages.com/badges/fisheye-module-modal/health.svg)](https://phpackages.com/packages/fisheye-module-modal)
```

###  Alternatives

[ethanyehuda/magento2-cronjobmanager

A module for managing scheduled cron jobs from magento's admin panel

3632.5M1](/packages/ethanyehuda-magento2-cronjobmanager)[baldwin/magento2-module-url-data-integrity-checker

Magento 2 module which can find potential url related problems in your catalog data

281773.3k](/packages/baldwin-magento2-module-url-data-integrity-checker)[faonni/module-smart-category

SmartCategory module is a base of Smart Categories functionality.

8289.3k3](/packages/faonni-module-smart-category)[swissup/module-marketplace

One-Click modules and themes downloader/installer

18383.8k2](/packages/swissup-module-marketplace)[scandipwa/menu-organizer

Scandiweb Menu Organizer for ScandiPWA

13230.5k2](/packages/scandipwa-menu-organizer)[lizardmedia/module-product-attachments

Products attachment by LizardMedia

4125.3k1](/packages/lizardmedia-module-product-attachments)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
