Search by

sisl-source / magento2-widget-parameters

SISL-source

Custom widget parameter types for improved CMS Page building

Package info

github.com/SISL-source/magento2-widget-parameters

Type:magento2-module

pkg:composer/sisl-source/magento2-widget-parameters

Statistics

Installs: 0

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

1.0.0 2026-09-15 12:53 UTC

This package is auto-updated.

Last update: 2026-09-18 17:25:10 UTC


README

Adds richer field types to Magento 2 widget configuration. By default a widget parameter is a plain text field — this module adds three types that are handy when building content widgets:

  • WYSIWYG — a full content editor as a widget parameter (formatting, links),
  • Textarea — a multi-line text field,
  • Image Chooser — pick an image from the Magento media gallery instead of pasting a path.

This makes custom widgets (promo blocks, banners, CMS sections) comfortable to configure from the admin, with no hand-written HTML or file paths.

This is a maintained fork of the archived dmatthew/magento2-widget-parameters (last commit 2022). The original declares php ^7.1||^8.0 and pins no magento/framework — it installs "silently" but was never tested against newer releases. This fork tightens the dependencies and is verified on Magento 2.4.9 / PHP 8.4 (di:compile + instantiation of the module's components).

Compatibility

  • Magento 2.4.4 – 2.4.9 (Open Source / Adobe Commerce)
  • PHP 8.1 – 8.4
  • magento/framework >=103.0.4 <104, magento/module-cms >=104.0.0 <105

Installation

composer require sisl-source/magento2-widget-parameters
bin/magento module:enable Dmatthew_WidgetParameters
bin/magento setup:upgrade
bin/magento setup:di:compile   # production mode

How to use

In your module's widget definition (widget.xml) set the parameter type to one of the rendering blocks:

<parameter name="content" xsi:type="block" visible="true" sort_order="10">
    <label>Content</label>
    <block class="Dmatthew\WidgetParameters\Block\Adminhtml\Widget\Type\Wysiwyg"/>
</parameter>

Available classes: ...\Widget\Type\Wysiwyg, ...\Widget\Type\Textarea, ...\Widget\Type\ImageChooser. After this change the editor shows up in the widget configuration form (Content → Widgets).

License

MIT (same as upstream). Fork maintained by SISL.

Maintained by SISL

Maintained fork by SISLMagento 2 development and modules. More self-hosted plugins: SISL Marketplace.