# Sw6 button für Plugin config

**URL:** <https://forum.shopware.com/t/sw6-button-fur-plugin-config/62449>\
**Category:** Allgemein\
**Created:** [17. Oktober 2019 um 09:36 UTC](https://forum.shopware.com/t/sw6-button-fur-plugin-config/62449 "2019-10-17T09:36:29Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Raggy](https://avatars.discourse-cdn.com/v4/letter/r/b4bc9f/32.png) [@Raggy](https://forum.shopware.com/u/Raggy)\
**Post date:** [17. Oktober 2019 um 09:36 UTC](https://forum.shopware.com/t/sw6-button-fur-plugin-config/62449/1 "2019-10-17T09:36:29Z")

</div>

Hallo zusammen.

Gibt es die Möglichkeit in SW6 einen button in der config.xml zu integrieren (So wie in Sw5)?

In der xsd sowie im Code hab ich keine möglichkeit gefunden.

&nbsp;

Gruß Raggy

&nbsp;

---

<div class="post-metadata">

**Author:** ![AndreHerking](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/andreherking/32/7839_2.png) [@AndreHerking](https://forum.shopware.com/u/AndreHerking)\
**Post date:** [17. Oktober 2019 um 09:43 UTC](https://forum.shopware.com/t/sw6-button-fur-plugin-config/62449/2 "2019-10-17T09:43:14Z")

</div>

Hilft die das vielleicht weiter?

[https://docs.shopware.com/en/shopware-platform-dev-en/internals/plugins/plugin-config?category=shopware-platform-dev-en/internals/plugins#configuring-input-fields](https://docs.shopware.com/en/shopware-platform-dev-en/internals/plugins/plugin-config?category=shopware-platform-dev-en/internals/plugins#configuring-input-fields)

Viele Grüße

Andre

---

<div class="post-metadata">

**Author:** ![Raggy](https://avatars.discourse-cdn.com/v4/letter/r/b4bc9f/32.png) [@Raggy](https://forum.shopware.com/u/Raggy)\
**Post date:** [18. Oktober 2019 um 06:39 UTC](https://forum.shopware.com/t/sw6-button-fur-plugin-config/62449/3 "2019-10-18T06:39:34Z")

</div>

Hallo Andre,

&nbsp;

danke für die schnell Rückmeldung. Leider konnte ich auch in der Dokumentation keinen Button oder zumindest ein Feld entdecken wo ich JS ausführen kann.

---

<div class="post-metadata">

**Author:** ![pclaisse](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/pclaisse/32/13548_2.png) [@pclaisse](https://forum.shopware.com/u/pclaisse)\
**Post date:** [24. Oktober 2019 um 11:36 UTC](https://forum.shopware.com/t/sw6-button-fur-plugin-config/62449/4 "2019-10-24T11:36:51Z")

</div>

Hallo Raggy,

ein wenig verspätet, aber vielleicht brauchst du ja noch eine Lösung. Du kannst die config.xml einfach mit eigenen Komponenten erweitern. Ich brauchte beispielsweise ein Banner über den&nbsp;Einstellungen:

config.xml:

```
            banner

```

test-image/index.js (component):

```
import testImageDe from './test-image_de.png';
import testImageEn from './test-image_en.png';

Shopware.Component.register('test-image', {
    template: '',

    computed: {
        imgUrl() {
            if( this.$store.state.adminLocale.currentLocale === 'de-DE' ) {
                return testImageDe ;
            }
            return testImageEn ;
        }
    }
});

```

Und ähnlich könnte es auch mit einem zusätzlichen Button funktionieren.

---

<div class="post-metadata">

**Author:** ![Raggy](https://avatars.discourse-cdn.com/v4/letter/r/b4bc9f/32.png) [@Raggy](https://forum.shopware.com/u/Raggy)\
**Post date:** [24. Oktober 2019 um 11:45 UTC](https://forum.shopware.com/t/sw6-button-fur-plugin-config/62449/5 "2019-10-24T11:45:04Z")

</div>

Hi pclaisse,

Genau sowas hab ich gesucht. Vielen Dank!
