Skip to content
Useful widget types for Magento 2 like image selector and wysiwyg text editor.
Branch: master
Clone or download
Latest commit aa4d63a Jun 19, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Block Fix URL to the insert image action Jan 30, 2019
Controller/Adminhtml/Wysiwyg/Images Add missing class Apr 9, 2018
Helper/Wysiwyg Add missing class Apr 9, 2018
docs/screenshots Add screenshot of Wysiwyg parameter Apr 9, 2018
etc Initial commit Apr 9, 2018
.gitignore Ignore IDE files Jan 30, 2019
ATTRIBUTION.md Create ATTRIBUTION.md May 31, 2018
LICENSE.txt Rename LICENSE to LICENSE.txt May 31, 2018
README.md Update README.md May 31, 2018
composer.json Update composer.json Jun 19, 2019
registration.php

README.md

Magento 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>

Image Chooser

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>

Image Chooser

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>

Image Chooser

License

MIT

Attribution

This software uses Open Source software. See the ATTRIBUTION page for these projects.

You can’t perform that action at this time.