# Statisches Bild-Asset aus Plugin in Component Bild-Slot verwenden?

**URL:** <https://forum.shopware.com/t/statisches-bild-asset-aus-plugin-in-component-bild-slot-verwenden/106460>\
**Category:** Shopware 6 (German)\
**Tags:** programming\
**Created:** [10. Februar 2025 um 09:39 UTC](https://forum.shopware.com/t/statisches-bild-asset-aus-plugin-in-component-bild-slot-verwenden/106460 "2025-02-10T09:39:23Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![LinS](https://avatars.discourse-cdn.com/v4/letter/l/edb3f5/32.png) [@LinS](https://forum.shopware.com/u/LinS)\
**Post date:** [10. Februar 2025 um 09:39 UTC](https://forum.shopware.com/t/statisches-bild-asset-aus-plugin-in-component-bild-slot-verwenden/106460/1 "2025-02-10T09:39:23Z")

</div>

In einer `component` möchte ich als Standard-Bild eines aus dem Plugin verwenden (das liegt dann unter `public/bundles/mybundle/administration/img/foo.png`).

Dieses Bild soll allerdings zusätzlich auch in der Storefront verwendet werden können..

Leider wird mir immer nur das Moutain-Bild angezeigt und beim Bearbeiten des Bild-Slots ist der Bild-Pfad leer.

Was ich schon versucht habe:

#### Variante 1

```javascript
/**./src/Resources/app/administration/src/module/sw-cms/blocks/image/category-gallery/index.js */
imgSlot: {
      type: "image",
      default: {
          data: {
              url: 'bundles/mybundle/administration/img/foo.png',
          },
      },
 }

```

#### Variante 2

```javascript
default: {
    data: {
        value: 'bundles/mybundle/administration/img/foo.png',
    },
},

```

#### Variante 3

```javascript
default: {
     data: {
         href: 'bundles/mybundle/administration/img/foo.png',
     },
}

```

#### Variante 4

```javascript
default: {
     data: {
         value: 'bundles/mybundle/administration/img/foo.png',
         source: 'default'
     },
}

```

#### Variante 5

```javascript
default: {
     data: {
         value: 'bundles/mybundle/administration/img/foo.png',
         source: 'mybundle'
     },
}

```

_und noch einiges mehr.._

**Frage 1:**  
Wie bekomme ich das Vorschaubild aus meinem Plugin angezeigt? (zumindest in der Component (nicht preview, da klappt es))

**Frage 2:**  
Ist es überhaupt möglich, ohne media-Datensatz das ganze in der Storefront zu verwenden? Falls ja, Wie?

Danke für Eure Hilfe.
