# Zusatzfelder bei CMS Blöcken

**URL:** <https://forum.shopware.com/t/zusatzfelder-bei-cms-bloecken/108402>\
**Category:** Programmierung\
**Created:** [31. Dezember 2025 um 13:25 UTC](https://forum.shopware.com/t/zusatzfelder-bei-cms-bloecken/108402 "2025-12-31T13:25:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![thomaspaul.at](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/thomaspaul.at/32/26490_2.png) [@thomaspaul.at](https://forum.shopware.com/u/thomaspaul.at)\
**Post date:** [31. Dezember 2025 um 13:25 UTC](https://forum.shopware.com/t/zusatzfelder-bei-cms-bloecken/108402/1 "2025-12-31T13:25:35Z")

</div>

Hi,

In meinem Plugin kann ich ja ganz einfach eigene CMS Blöcke erstellen und hab da auch die defaultConfig zur Verfügung.

Gibt es auch eine Möglichkeit hier eigene Eingaben (input, select, checkbox, …) rein zu bekommen?

In der Doku selbst hab ich jetzt nix gefunden, oder vielleicht auch nicht richtig gesucht.

```auto
// <plugin root>/src/Resources/app/administration/src/module/sw-cms/blocks/text-image/image-text-reversed/index.js
import './component';
import './preview';

Shopware.Service('cmsService').registerCmsBlock({
    name: 'image-text-reversed',
    category: 'text-image',
    label: 'cms.blocks.imageTextReversed.label',
    component: 'cms-block-image-text-reversed',
    previewComponent: 'cms-block-preview-image-text-reversed',
    defaultConfig: {
        marginBottom: '20px',
        marginTop: '20px',
        marginLeft: '20px',
        marginRight: '20px',
        sizingMode: 'boxed',
    },
    slots: {
        left: 'text',
        right: 'image',
    },
});

```

---

<div class="post-metadata">

**Author:** ![Max\_Shop](https://avatars.discourse-cdn.com/v4/letter/m/58f4c7/32.png) [@Max\_Shop](https://forum.shopware.com/u/Max_Shop)\
**Post date:** [2. Januar 2026 um 12:41 UTC](https://forum.shopware.com/t/zusatzfelder-bei-cms-bloecken/108402/2 "2026-01-02T12:41:18Z")

</div>

Du kannst in die defaultConfig schreiben was du möchtest, solange deine Elemente in den Slots diese Werte unterstützen.

> **[Add CMS Elements | Shopware Documentation](https://developer.shopware.com/docs/guides/plugins/plugins/content/cms/add-cms-element.html)**
>
> Documentation for Shopware developers

---

<div class="post-metadata">

**Author:** ![thomaspaul.at](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/thomaspaul.at/32/26490_2.png) [@thomaspaul.at](https://forum.shopware.com/u/thomaspaul.at)\
**Post date:** [2. Januar 2026 um 18:02 UTC](https://forum.shopware.com/t/zusatzfelder-bei-cms-bloecken/108402/3 "2026-01-02T18:02:22Z")

</div>

Danke für die Rückmeldung, aber da geht es ja um die Elemente, ich möchte ja einen Block erstellen.

> **[Add CMS Blocks | Shopware Documentation](https://developer.shopware.com/docs/guides/plugins/plugins/content/cms/add-cms-block.html)**
>
> Documentation for Shopware developers

Zur Erklärung, ein Grid mit 2 Spalten und das Grid selbst soll die Config bekommen ob z.B.: 50% / 50% oder 60% / 40% usw.

Natürlich könnte ich auch mehrere Blöcke anlegen, sprich einen mit 50/50 (gibt’s ja schon), einen Block mit 60/40 usw. … aber mit nur einen Block und einem Setting, würde das ganz ja um einiges „aufgeräumter“.
