jbl/shopware-config-elements

Adds a bunch of additional config elements for the administration

Installs: 3

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 1

Forks: 0

Open Issues: 0

Language:JavaScript

Type:symfony-bundle

dev-main 2023-09-21 21:23 UTC

This package is auto-updated.

Last update: 2024-05-21 22:59:39 UTC


README

Software License Packagist Version PHP Version

Since shopware's plug-in config only supports some default Elements and some pre-defined components,
this repository aims to extend it by a bunch of new elements.
Feel free to add your own or to adjust the existing ones.

Make sure to pre-build the assets and commit the compiled JS as well.

Install

install bundle

Install via composer:

composer require jbl/shopware-config-elements:dev-main

activate bundle

open config/bundles.php and add to the end of the array:

Jbl\ShopwareConfigElements\JblShopwareConfigElements::class => ['all' => true]

copy assets

execute in console

bin/console assets:install

Config Elements

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>