- Fixed an issue where Sprig was being bootstrapped for frontend requests.
- Added support for Sprig functions in widget templates. You must have
putyourlightson/craft-sprig-core
orputyourlightson/craft-sprig
installed separately. - Set the
diy-widget
template root to point to theconfig/diy-widget
directory.
- Added Craft 5 compatibility.
- Added Craft 4 compatibility.
- Removed build tools for example widgets’ styles and scripts.
- Updated example widget styles for Craft 4.
- Added some new example widgets: “Entries Count”, ”Users Count”, “Recent Drafts”, “Recent Entry Updates” and “Recent Users”.
- The “Recent Assets” example widget now shows the uploader’s username.
- All JavaScript and CSS files found in
config/diy-widget
are now loaded for CP requests, not just the ones matching template filenames. - Widget titles are now displayed in Title Case.
- Static translations in example widgets are now using the
site
category.
- Updated example widget styles for Craft 3.4.
- Fixed a bug where widget icons didn’t display in Craft 3.2 or later.
- The plugin now removes all DIY widgets that were installed under Craft 2 from the dashboards when it gets installed.
- Added Craft 3 compatibility.
- Each widget is now it’s own widget type and can be added to the Dashboard by selecting it from the “New widget” dropdown.
- Each widget can now provide its own icon.
- Added plugin and widget icons.
- Added a very basic “Welcome” example widget.
- Made some UI improvements to the “Search” example widget, a spinner is now shown while results are loading.
- The “Recent Assets” example widget now really shows the latest assets.
- The widget’s ID passed in to the templates doesn’t contain the word
widget
any longer. - The
Craft.DiyWidget
object is now only created in the example Javascripts if it doesn’t already exist.
- Added a new “Entry Search” example widget.
- Added a
getHtml
controller action to request the templates using Ajax.
- Templates starting with an underscore are no longer listed in the widget settings.
- First release