jbl / shopware-config-elements
为管理添加了许多额外的配置元素
dev-main
2023-09-21 21:23 UTC
Requires
- php: ^8.0
- shopware/core: >=6.5.0.0
This package is auto-updated.
Last update: 2024-09-21 23:53:09 UTC
README
由于shopware的插件配置只支持一些默认元素和一些预定义组件,
本仓库旨在通过许多新元素对其进行扩展。
欢迎添加您自己的或调整现有的元素。
请确保预构建资产并提交编译后的JS。
安装
安装包
通过composer安装
composer require jbl/shopware-config-elements:dev-main
激活包
打开 config/bundles.php
并将以下内容添加到数组末尾
Jbl\ShopwareConfigElements\JblShopwareConfigElements::class => ['all' => true]
复制资产
在控制台执行
bin/console assets:install
配置元素
jbl-cta
<component name="jbl-cta"> <name>uniqueName</name> <headline>This is a headline</headline> <text>Some Text displyed below the headline</text> <buttonText>Text displayed on button</buttonText> <buttonLink>https://www.something.com/</buttonLink> <buttonVariant>primary|ghost|danger|ghost-danger|contrast|context</buttonVariant> </component>
jbl-simple-text
<component name="jbl-simple-text"> <name>uniqueName</name> <text>This element simply displays some regular text.</text> </component>