# Konfiguration des custom cms elements wird nicht geladen

**URL:** <https://forum.shopware.com/t/konfiguration-des-custom-cms-elements-wird-nicht-geladen/70530>\
**Category:** Programmierung\
**Created:** [29. Oktober 2020 um 13:22 UTC](https://forum.shopware.com/t/konfiguration-des-custom-cms-elements-wird-nicht-geladen/70530 "2020-10-29T13:22:53Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ralfh](https://avatars.discourse-cdn.com/v4/letter/r/ee7513/32.png) [@ralfh](https://forum.shopware.com/u/ralfh)\
**Post date:** [29. Oktober 2020 um 13:22 UTC](https://forum.shopware.com/t/konfiguration-des-custom-cms-elements-wird-nicht-geladen/70530/1 "2020-10-29T13:22:53Z")

</div>

Hallo,

ich weiß nicht woran es scheitert, dass meine Konfiguration im Backend weder aufrufbar, noch geladen wird.  
Mein Element funktioniert einwandfrei in Front und Backend, nur eben die config nicht (das Zahnrad is ausgegraut).

index.js

```
import './component';
import './config';
import './preview';

Shopware.Service('cmsService').registerCmsElement({
    name: 'topbrands',
    label: 'sw-cms.elements.customTopbrandsElement.label',
    component: 'sw-cms-el-topbrands',
    configComponent: 'sw-cms-el-config-topbrands',
    previewComponent: 'sw-cms-el-preview-topbrands',
});

```

/config/index.js

```
import template from './sw-cms-el-config-topbrands.html.twig';

const { Component, Mixin } = Shopware;

Component.register('sw-cms-el-config-topbrands', {
    template,

    mixins: [
        Mixin.getByName('cms-element')
    ],

    created() {
        console.log("Warum werde ich nicht ausgegeben?");
        this.createdComponent();
    },

    methods: {
        createdComponent() {
            this.initElementConfig('topbrands');
        }
    }
});

```

/config/sw-cms-el-config-topbrands.html.twig

```
{% block sw_cms_element_topbrands_config %}
    
        {% block sw_cms_element_topbrands_config_headline %}
            
            
        {% endblock %}
    
{% endblock %}

```

Was ich bereits mehrfach getan habe:

administration:build, cache:clear, Plugin deinstalliert und installiert, storefront:build

Vielleicht kann mir jemand ja einen Tipp geben, aber vermutlich bleibt es wie fast immer hier im Forum unkommentiert. Langsam ist es echt deprimierend und Shopware 6 fühlt sich immernoch an wie eine Beta Version.

---

<div class="post-metadata">

**Author:** ![Whyex](https://avatars.discourse-cdn.com/v4/letter/w/9de0a6/32.png) [@Whyex](https://forum.shopware.com/u/Whyex)\
**Post date:** [12. Februar 2021 um 10:08 UTC](https://forum.shopware.com/t/konfiguration-des-custom-cms-elements-wird-nicht-geladen/70530/2 "2021-02-12T10:08:00Z")

</div>

HI [ralfh,](https://forum.shopware.com/profile/34224/ralfh)

bist schon hier schon weiter gekommen? Ich stehe vor dem selben problem.

---

<div class="post-metadata">

**Author:** ![sturzi](https://avatars.discourse-cdn.com/v4/letter/s/e68b1a/32.png) [@sturzi](https://forum.shopware.com/u/sturzi)\
**Post date:** [26. Februar 2021 um 14:48 UTC](https://forum.shopware.com/t/konfiguration-des-custom-cms-elements-wird-nicht-geladen/70530/3 "2021-02-26T14:48:13Z")

</div>

In der /config/index.js fehlt der Teil “computed” für die Variable “headline”

```
computed: {
        headline: {
            get() {
                return this.element.config.headline.value;
            },
            set(val) {
                this.element.config.headline.value = val;
            }
        }
}

```

&nbsp;
