App System: Custom CMS elements
What we need:
It would be wonderful if there could be a way to provide custom CMS elements in apps.
Why we need this:
We always want to offer our customers the best possible solutions in our themes, including sales-promoting CMS elements. Due to limitations in the app system, we can currently only do this in our extensions based on the plugin system. Since we also offer our extensions on the basis of the app system, this results in an "unnecessary" duplication and "maintenance effort". A single, unified app is highly desirable.
The app system lacks the possibility to provide custom CMS elements (component + config + preview, see https://developer.shopware.com/docs/guides/plugins/plugins/content/cms/add-cms-element), to fill CMS blocks with custom CMS elements and to preconfigure them accordingly (defaultConfig).
Ideas:
The most practical thing would be if the built administration JS file (build-administration.sh) would also work in the app or if there would be a similar script to compile the necessary app files.
With kind regards
Thanks for your contribution.
Adding your own CMS elements via Apps is possible with the shopware version 6.4.17. It is possible to create new CMS elements via the Admin Extension SDK for both plugins and apps. Read the following docs article: https://developer.shopware.com/docs/guides/plugins/plugins/content/cms/add-cms-element-via-admin-sdk
If you have any suggestions or improvements towards our approach, feel free to reach out to us.
Thank you.