# CustomFieldsPostions funktioniert nicht

**URL:** https://forum.shopware.com/t/customfieldspostions-funktioniert-nicht/97341
**Category:** Shopware 6 (German)
**Tags:** general, administration, programming, other
**Created:** [29. November 2022 um 10:59 UTC](https://forum.shopware.com/t/customfieldspostions-funktioniert-nicht/97341 "2022-11-29T10:59:01Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![alsa79](https://avatars.discourse-cdn.com/v4/letter/a/65b543/32.png) [@alsa79](https://forum.shopware.com/u/alsa79)
#### Post date: [29. November 2022 um 10:59 UTC](https://forum.shopware.com/t/customfieldspostions-funktioniert-nicht/97341/1 "2022-11-29T10:59:01Z")

</div>

Ich arbeite gerade an ein Plugin, das CustomFields beim Instalieren des Plguins erstellt.  
Wie ich im Dokumentation gelesen habe, kann man die Reihnfolge des Fields angeben. Wie da beschrieben ist, habe ich auch gemacht. Aber leider wird die Reihnfolge anders angezeigt.  
Das ist mein Code:

```auto
'customFields' => [
                        [
                            'name' => '1_icon',
                            'type' => CustomFieldTypes::MEDIA,
                            'config' => [
                                'customFieldPosition' => 1,
                                'componentName' => 'sw-media-field',
                                'customFieldType' => CustomFieldTypes::MEDIA,
                                'label' => [
                                    'en-GB' => '1 Icon',
                                    'de-DE' => '1 Icon',
                                ],
                            ],
                        ],
                        [
                            'name' => '1_title',
                            'type' => CustomFieldTypes::TEXT,
                            'config' => [
                                'customFieldPosition' => 2,
                                'componentName' => 'sw-text-field',
                                'customFieldType' => 'text',
                                'label' => [
                                    'en-GB' => '1 Title',
                                    'de-DE' => '1 Title'
                                ],
                            ],
                        ],
]

```
