Skip to content

Peeet93/shopware-cms-helper

Repository files navigation

Welcome to shopware-cms-helper 👋

Version Documentation Maintenance License: MIT

Create Shopware cms element and block structure

Prerequisites

  • npm >=8.11.0
  • node >=16.16.1

Install

npm i shopware-cms-helper -g

Usage

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

Author

👤 Kevin Dohlen

🤝 Contributing

Contributions, issues and feature requests are welcome!
Feel free to check issues page.

Show your support

Give a ⭐️ if this project helped you!


This README was generated with ❤️ by readme-md-generator

About

Create cms-elements and -blocks from console

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published