# readOnly bei mediaselection?

**URL:** <https://forum.shopware.com/t/readonly-bei-mediaselection/46902>\
**Category:** Programmierung\
**Created:** [13. Juli 2017 um 10:55 UTC](https://forum.shopware.com/t/readonly-bei-mediaselection/46902 "2017-07-13T10:55:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![IFF](https://avatars.discourse-cdn.com/v4/letter/i/c37758/32.png) [@IFF](https://forum.shopware.com/u/IFF)\
**Post date:** [13. Juli 2017 um 10:55 UTC](https://forum.shopware.com/t/readonly-bei-mediaselection/46902/1 "2017-07-13T10:55:33Z")

</div>

Beim bisherigen Pluginsystem konnte man bei “mediaselection” das Attribut “readOnly” auf “false” setzen:

```
    $form->setElement(
      'mediaselection', 'defaultImageHome', 
      array(
      'label' => 'Hintergrundbild Startseite', 
      'value' => '',
      'description' => 'Hintergrundbild für die Startseite festlegen.',
      'scope' => Shopware\Models\Config\Element::SCOPE_SHOP,
      'readOnly' => false,
    ));

```

Wie geht das bei 5.2 Plugin-Struktur?

```
            defaultImage
            Bild suchen
            
            Bild suchen

```

Als Attribut hat bisher nicht funktioniert:

&nbsp;

---

<div class="post-metadata">

**Author:** ![Michael\_Telgmann](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/michael_telgmann/32/20289_2.png) [@Michael\_Telgmann](https://forum.shopware.com/u/Michael_Telgmann)\
**Post date:** [13. Juli 2017 um 13:13 UTC](https://forum.shopware.com/t/readonly-bei-mediaselection/46902/2 "2017-07-13T13:13:55Z")

</div>

Hallo,

du kannst einfach ein weiteres Element hinzufügen, das wie folgt aussieht:

```
    false

```

So solltest du alle Optionen, die voher&nbsp;möglich waren, abbilden können.&nbsp;

Viele Grüße aus Schöppingen

![cool](https://europe1.discourse-cdn.com/flex013/uploads/shopware/original/1X/86c57fbace799dd4eb1f1b8a2d3bdc1733f0aea1.png "cool")&nbsp;Michael Telgmann
