Magento2 Widget Parameters
dmatthew/magento2-widget-parameters
Adds new widget parameter types, such as image selector, textarea, and WYSIWYG editor, for use in Magento CMS pages. Enables more flexible widget configuration.
Build Tests
Code Quality
Tested on Magento 2.4.8-p3
Recent Test History
Each release is tested against the latest Magento version at that time.
Share This Module's Status
README
Loaded from GitHubMagento Widget Parameters
Useful widget parameter types for improved CMS Page building in Magento 2. Adds new parameter types like an image selector, wysiwyg text editor, or textarea. You can now use these parameter types in your custom widgets.
How to Use
Image Selector
<parameter xsi:type="block" name="background_image" visible="true" sort_order="10">
<label translate="true">Background Image</label>
<block class="Dmatthew\WidgetParameters\Block\Adminhtml\Widget\Type\ImageChooser">
<data>
<item name="button" xsi:type="array">
<item name="open" xsi:type="string">Choose Image...</item>
</item>
</data>
</block>
</parameter>

Textarea
<parameter xsi:type="block" name="body_text" visible="true" sort_order="10">
<label translate="true">Body Text</label>
<block class="Dmatthew\WidgetParameters\Block\Adminhtml\Widget\Type\Textarea" />
</parameter>

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

License
Attribution
This software uses Open Source software. See the ATTRIBUTION page for these projects.
This content is fetched directly from the module's GitHub repository. We are not the authors of this content and take no responsibility for its accuracy, completeness, or any consequences arising from its use.