staempfli / magento2-module-widget-extra-fields
Magento 2 module to add extra field types on widgets
Installs: 35 368
Dependents: 0
Suggesters: 0
Security: 0
Stars: 19
Watchers: 8
Forks: 10
Open Issues: 5
Type:magento2-module
Requires
- php: ^7.0|~7.1|^7.2
- magento/framework: ^100.0|^101.0|^102.0
This package is auto-updated.
Last update: 2020-09-16 11:59:15 UTC
README
Magento 2 module to add extra field types on widgets
Installation
$ composer require "staempfli/magento2-module-widget-extra-fields":"~1.0"
Usage
ImageField
Use Staempfli\WidgetExtraFields\Block\Adminhtml\ImageField
as block
type in your widget parameter
<widget id="<widget_id>" class="Vendor\Module\Block\Widget\<Your_Widget>" >
<label translate="true">Widget Name</label>
<description>Widget Description</description>
<parameters>
<parameter name="image" xsi:type="block" visible="true" sort_order="100" required="true">
<label translate="true">Image</label>
<block class="Staempfli\WidgetExtraFields\Block\Adminhtml\ImageField"/>
</parameter>
</parameters>
</widget>
Prerequisites
- PHP >= 7.0.*
- Magento >= 2.1.*
Developers
Juan Alonso, and all other contributors
License
Open Software License ("OSL") v. 3.0
Copyright
(c) 2017, Stämpfli AG