https://github.com/carlcs/craft-diywidget
Do It Yourself widget for Craft CMS
https://github.com/carlcs/craft-diywidget
craft-plugin craftcms
Last synced: 11 months ago
JSON representation
Do It Yourself widget for Craft CMS
- Host: GitHub
- URL: https://github.com/carlcs/craft-diywidget
- Owner: carlcs
- License: mit
- Created: 2016-07-22T17:46:21.000Z (almost 10 years ago)
- Default Branch: 4.0
- Last Pushed: 2024-04-03T09:17:28.000Z (about 2 years ago)
- Last Synced: 2024-08-10T08:16:04.612Z (almost 2 years ago)
- Topics: craft-plugin, craftcms
- Language: PHP
- Size: 1.85 MB
- Stars: 38
- Watchers: 3
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
Awesome Lists containing this project
README
# 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
php craft plugin/install 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. To give the widget an icon, upload a `widget-name.svg` file. If you need custom CSS or some Javascript, just upload it into that folder as well and they will be included automatically.
If you don’t feel like crafting, just have a play with the example template files provided with the plugin. Copy the files from [`_examples/diy-widget/`](_examples/diy-widget) into your `config/diy-widget/` folder.
## License
[MIT](LICENSE.md)