# Zusatzfeld

**URL:** <https://forum.shopware.com/t/zusatzfeld/65984>\
**Category:** Themes & Design\
**Created:** [2. April 2020 um 17:30 UTC](https://forum.shopware.com/t/zusatzfeld/65984 "2020-04-02T17:30:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![schlumpbergercom](https://avatars.discourse-cdn.com/v4/letter/s/8491ac/32.png) [@schlumpbergercom](https://forum.shopware.com/u/schlumpbergercom)\
**Post date:** [2. April 2020 um 17:30 UTC](https://forum.shopware.com/t/zusatzfeld/65984/1 "2020-04-02T17:30:03Z")

</div>

Ich habe ein Zusatzfeld “Media” angelegt.

Im Template habe ich ergänzt&nbsp;{{ page.product.customFields.custom\_fotohandel\_bilddatei }}

Im Frontend erhalte ich dann die Ausgabe&nbsp;bdef74ad919c4bc3a5d8cedcac599dc0

Wie kann das das Bild angezeigt werden?

Vielen Dank für Unterstützung.

&nbsp;

---

<div class="post-metadata">

**Author:** ![sschreier](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/sschreier/32/23296_2.png) [@sschreier](https://forum.shopware.com/u/sschreier)\
**Post date:** [2. April 2020 um 20:52 UTC](https://forum.shopware.com/t/zusatzfeld/65984/2 "2020-04-02T20:52:03Z")

</div>

Hallo,

das steht eigentlich sehr deutlich in den Shopware Dokumentationen, falls man sich mit diesen auch beschäftigt, siehe:&nbsp;[https://docs.shopware.com/en/shopware-platform-dev-en/how-to/custom-fields-media-type#using-custom-fields-of-type-media](https://docs.shopware.com/en/shopware-platform-dev-en/how-to/custom-fields-media-type#using-custom-fields-of-type-media)&nbsp;.

Grüße

Sebastian

---

<div class="post-metadata">

**Author:** ![schlumpbergercom](https://avatars.discourse-cdn.com/v4/letter/s/8491ac/32.png) [@schlumpbergercom](https://forum.shopware.com/u/schlumpbergercom)\
**Post date:** [3. April 2020 um 08:40 UTC](https://forum.shopware.com/t/zusatzfeld/65984/3 "2020-04-03T08:40:20Z")

</div>

Danke. Ja. Aber trotzdem komme ich leider nicht weiter.

Hier mal mein Code in der entsprechenden Datei. Vielen Dank für Hilfe.

{% sw\_extends ‚@Storefront/storefront/page/product-detail/index.html.twig‘ %}  
{% block page\_product\_detail\_tabs %}

&nbsp;{{ page.product.translated.customFields.custom\_fotohandel\_bilddatei }}  
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;{{ page.product.customFields.custom\_fotohandel\_werkstattueberholt }}  
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  
&nbsp;{% set sportsMediaId = page.product.translated.customFields.custom\_fotohandel\_bilddatei %}  
&nbsp;{% set mediaCollection = searchMedia([sportsMediaId], context.context) %}  
&nbsp;{% set sportsMedia = mediaCollection.get(sportsMediaId) %}  
&nbsp;{{ dump (sportsMedia) }}

&nbsp;

&nbsp; {% endblock %}
