Newer
Older
<?xml version="1.0" encoding="UTF-8"?>
<widgets xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Widget:etc/widget.xsd">
<widget id="nicolasbejean_categorywidget" class="NicolasBejean\CategoryWidget\Block\Widget\CategoryWidget">
<label translate="true">widget_label</label>
<description translate="true">widget_description</description>
<parameters>
<parameter name="widget_title" xsi:type="text" visible="true" sort_order="1">
<label translate="true">widget_title</label>
</parameter>
<parameter name="widget_content" xsi:type="text" visible="true" sort_order="2">
<label translate="true">widget_content</label>
<parameter name="category_selection" xsi:type="multiselect" visible="true" sort_order="3" source_model="NicolasBejean\CategoryWidget\Model\Config\Source\CategoryList">
<label translate="true">category_selection</label>
<description translate="true">category_selection_description</description>
<parameter name="category_image_width" xsi:type="text" visible="true" sort_order="4">
<label translate="true">category_image_width</label>
<description translate="true">category_image_width_description</description>
</parameter>
<parameter name="category_image_height" xsi:type="text" visible="true" sort_order="5">
<label translate="true">category_image_height</label>
<description translate="true">category_image_height_description</description>
</parameter>
<parameter name="template" xsi:type="select" required="true" visible="true" sort_order="6">
<label translate="true">template</label>
<option name="img_background" value="widget/category_widget_img_background.phtml" selected="true">
<label translate="true">default_template</label>
<option name="default" value="widget/category_widget.phtml">
<label translate="true">other_template</label>