# CustomFieldTypes::MEDIUM --&gt; FEHLT!

**URL:** <https://forum.shopware.com/t/customfieldtypes-medium-gt-fehlt/69079>\
**Category:** Programmierung\
**Created:** [21. August 2020 um 07:39 UTC](https://forum.shopware.com/t/customfieldtypes-medium-gt-fehlt/69079 "2020-08-21T07:39:29Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![kanuma](https://avatars.discourse-cdn.com/v4/letter/k/ce7236/32.png) [@kanuma](https://forum.shopware.com/u/kanuma)\
**Post date:** [21. August 2020 um 07:39 UTC](https://forum.shopware.com/t/customfieldtypes-medium-gt-fehlt/69079/1 "2020-08-21T07:39:29Z")

</div>

Wie ist es möglich per Plugin ein Custom Field vom Typ MEDIUM zu erstellen?

&nbsp;

@Shyim‍ ne idee?

&nbsp;

 ![](https://europe1.discourse-cdn.com/flex013/uploads/shopware/original/2X/6/62d1e2a83c0012b6fa1d941362c46b052e4a9c4e.png)

 ![](https://europe1.discourse-cdn.com/flex013/uploads/shopware/original/2X/7/76f4afb83de518a6c6d1b2edfe1feb9f414d7ec3.jpeg)

&nbsp;

---

<div class="post-metadata">

**Author:** ![EikeBrandtWarneke](https://avatars.discourse-cdn.com/v4/letter/e/cdc98d/32.png) [@EikeBrandtWarneke](https://forum.shopware.com/u/EikeBrandtWarneke)\
**Post date:** [21. August 2020 um 07:50 UTC](https://forum.shopware.com/t/customfieldtypes-medium-gt-fehlt/69079/2 "2020-08-21T07:50:58Z")

</div>

```
[
    'id' => null,
    'name' => 'my_custom_field',
    'type' => CustomFieldTypes::TEXT,
    'config' => [
        'label' => [
            'en-GB' => 'textarea',
            'de-DE' => 'textarea'
        ],
        'componentName' => 'sw-textarea-field',
        'customFieldType' => 'textarea',
        'customFieldPosition' => 7
    ]
]

```

Viele Grüße

---

<div class="post-metadata">

**Author:** ![kanuma](https://avatars.discourse-cdn.com/v4/letter/k/ce7236/32.png) [@kanuma](https://forum.shopware.com/u/kanuma)\
**Post date:** [21. August 2020 um 07:54 UTC](https://forum.shopware.com/t/customfieldtypes-medium-gt-fehlt/69079/3 "2020-08-21T07:54:01Z")

</div>

Hi!

Dadurch habe ich nur ein textfeld, ich möchte jedoch ein MEDIA Feld um ein Bild zu hinterlegen. Im Admin ist das kein Problem…

---

<div class="post-metadata">

**Author:** ![kanuma](https://avatars.discourse-cdn.com/v4/letter/k/ce7236/32.png) [@kanuma](https://forum.shopware.com/u/kanuma)\
**Post date:** [21. August 2020 um 08:12 UTC](https://forum.shopware.com/t/customfieldtypes-medium-gt-fehlt/69079/4 "2020-08-21T08:12:30Z")

</div>

so gehts:

&nbsp;

```
 'customFields' =\> [['id' =\> '60e874a1a32a495e88d36e7f8c8bdb0a', 'name' =\> 'custom\_category\_image\_value', 'type' =\> CustomFieldTypes::TEXT, 'config' =\> [ 'label' =\> [ 'de-DE' =\> 'Bild', 'en-GB' =\> 'image',], 'componentName' =\> ' **sw-media-field**', 'customFieldType' =\> ' **media**', 'customFieldPosition' =\> 1 ], ] ] ![](https://i.imgur.com/FJXYp3F.png)
```
