Create Shopware cms element and block structure
🏠 Homepage
- npm >=8.11.0
- node >=16.16.1
npm i shopware-cms-helper -g
go to your plugin folder e.g. custom/plugins/MyPlugin
and run the following command
npx shopware-cms-helper
Choose your desired options and the plugin will create the necessary files for you
After this, you can add the new element/block to your main.js inside of "YourPlugin/src/Resources/app/administration/src" like:
import './module/sw-cms/elements/test';
import './module/sw-cms/blocks/test';
and run:
psh.phar administration:build
If you dont have a psh.phar file, you can get it with this commands:
wget https://shopwarelabs.github.io/psh/psh.phar
chmod +x psh.phar
Now you should have a new element/block in your storefront administration
👤 Kevin Dohlen
- Website: https://www.webaix.de
- Github: @Peeet93
Contributions, issues and feature requests are welcome!
Feel free to check issues page.
Give a ⭐️ if this project helped you!
This README was generated with ❤️ by readme-md-generator