staempfli / magento2-module-widget-extra-fields
该软件包已被废弃,不再维护。未建议替代软件包。
Magento 2模块,用于在组件中添加额外字段类型
1.1.0
2019-04-11 13:32 UTC
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模块,用于在组件中添加额外字段类型
安装
$ composer require "staempfli/magento2-module-widget-extra-fields":"~1.0"
使用方法
ImageField
在组件参数中使用 Staempfli\WidgetExtraFields\Block\Adminhtml\ImageField
作为 block
类型
<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>
先决条件
- PHP >= 7.0.*
- Magento >= 2.1.*
开发者
Juan Alonso,以及其他所有 贡献者
许可
版权
(c) 2017, Stämpfli AG