Skip to content
Do It Yourself widget for Craft CMS
Branch: v2
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
_examples
src
.editorconfig
.gitignore
CHANGELOG.md
LICENSE.md
README.md
composer.json
package.json
webpack.mix.js Craft 3 May 29, 2018

README.md

Do It Yourself widget for Craft CMS

A super easy way to create your own dashboard widgets for the Control Panel.

Installation

Do It Yourself widget is available in the Plugin Store. You can also install the plugin manually from the command line with the following commands.

> composer require carlcs/craft-diywidget
> ./craft install/plugin diy-widget

Getting Started

It is super easy to build your own widgets using this plugin. All you need to do is to create a new folder called diy-widget inside of your config folder and add Twig templates to it.

You can create new widgets using Twig/HTML, by creating a widget-name.html file.

These templates will now be available to add to your dashboard. If you need custom CSS or some Javascript, just upload it into that folder as well and they will be included automatically. Simply create a widget-name.css or widget-name.js file. To give the widget an icon, upload a widget-name.svg file.

If you don’t feel like crafting, just have a play with the example template files provided with the plugin.

License

MIT

You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.