# Smarty Variable für Artikelbilder

**URL:** <https://forum.shopware.com/t/smarty-variable-fur-artikelbilder/52502>\
**Category:** Themes & Design\
**Created:** [20. April 2018 um 14:35 UTC](https://forum.shopware.com/t/smarty-variable-fur-artikelbilder/52502 "2018-04-20T14:35:07Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![SaschaJonas](https://avatars.discourse-cdn.com/v4/letter/s/779978/32.png) [@SaschaJonas](https://forum.shopware.com/u/SaschaJonas)\
**Post date:** [20. April 2018 um 14:35 UTC](https://forum.shopware.com/t/smarty-variable-fur-artikelbilder/52502/1 "2018-04-20T14:35:07Z")

</div>

Hallo zusammen,

ich möchte über der Artikelbeschreibung immer das 2.&nbsp;Artikelbild ausgeben.

Kann mir jemand sagen wie die Smarty-Variable&nbsp;lautet?

Meine Recherche hier im Forum und bei Google hat leider nix brauchbares ergeben.

&nbsp;

Gruß Sascha

---

<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:** [20. April 2018 um 16:21 UTC](https://forum.shopware.com/t/smarty-variable-fur-artikelbilder/52502/2 "2018-04-20T16:21:50Z")

</div>

Hallo,

du könntest einfach die foreach - Schleife der Bilder nutzen und nur beim zweiten Durchlauf eine Ausgabe (das Bild) erzeugen lassen, siehe:&nbsp;[https://github.com/shopware/shopware/blob/5.4/themes/Frontend/Bare/frontend/detail/images.tpl#L35](https://github.com/shopware/shopware/blob/5.4/themes/Frontend/Bare/frontend/detail/images.tpl#L35)&nbsp;. Alternativ mal über diese Variable probieren: {$sArticle.image.src.2} .

Grüße

Sebastian

---

<div class="post-metadata">

**Author:** ![SaschaJonas](https://avatars.discourse-cdn.com/v4/letter/s/779978/32.png) [@SaschaJonas](https://forum.shopware.com/u/SaschaJonas)\
**Post date:** [23. April 2018 um 11:45 UTC](https://forum.shopware.com/t/smarty-variable-fur-artikelbilder/52502/3 "2018-04-23T11:45:15Z")

</div>

Hey Sebastian,

vielen Dank für deine Hilfe.

Ich habe die Variable jetzt rausbekommen:

1. Bild (Vorschau):&nbsp;

2. Bild&nbsp;

3. Bild&nbsp;

usw…

Gruß Sascha
