# Image Alt Tag

**URL:** https://forum.shopware.com/t/image-alt-tag/48980
**Category:** Themes & Design
**Created:** [22. Oktober 2017 um 06:27 UTC](https://forum.shopware.com/t/image-alt-tag/48980 "2017-10-22T06:27:44Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Achim](https://avatars.discourse-cdn.com/v4/letter/a/ce7236/32.png) [@Achim](https://forum.shopware.com/u/Achim)
#### Post date: [22. Oktober 2017 um 06:27 UTC](https://forum.shopware.com/t/image-alt-tag/48980/1 "2017-10-22T06:27:44Z")

</div>

Hallo,

wir möchten gerne Alt Image Tag mit dem Hersteller des jeweilgen Artikels ergänzen.&nbsp;

Leider hängenwir an dieser Stelle, im Template image.tpl:&nbsp;

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {$alt = $sArticle.articleName|escape}

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {if $sArticle.image.description}  
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {$alt = $sArticle.image.description|escape}  
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {/if}

Wie kann ich der Variable $alt zusätzlich den Hersteller zuweisen? Also beide Variablen in der $alt verbinden ({$sArticle.supplierName} {$sArticle.articleName|escape}).&nbsp;

Vielen Dank vorab!&nbsp;

Grüße,  
Achim

&nbsp;

---

<div class="post-metadata">

### Author: ![schroederweb](https://avatars.discourse-cdn.com/v4/letter/s/a183cd/32.png) [@schroederweb](https://forum.shopware.com/u/schroederweb)
#### Post date: [22. Oktober 2017 um 07:10 UTC](https://forum.shopware.com/t/image-alt-tag/48980/2 "2017-10-22T07:10:26Z")

</div>

Hallo Achim,

&nbsp;

du du kannst beide Variablen aus der Datenbank auslesen und mit . Verknüpfen&nbsp;

&nbsp;

quasi $alt = $1variable . „ „ . $2variable&nbsp;

&nbsp;

gruss

&nbsp;

oliver

---

<div class="post-metadata">

### Author: ![Achim](https://avatars.discourse-cdn.com/v4/letter/a/ce7236/32.png) [@Achim](https://forum.shopware.com/u/Achim)
#### Post date: [22. Oktober 2017 um 15:12 UTC](https://forum.shopware.com/t/image-alt-tag/48980/3 "2017-10-22T15:12:27Z")

</div>

Hallo Oliver,

Danke für die Antwort. Nach Möglichkeit möchte ich die Variablen direkt im Frontend kombinieren, also per Smarty.&nbsp;

Alt, Image Tag:&nbsp;&nbsp;{$alt = $sArticle.articleName}

Neu, inkl. Hersteller:&nbsp;&nbsp;{$alt = &nbsp;$sArticle.supplierName . „ „ .$sArticle.articleName}

Hast du hier oder jemand anderes eine Idee?&nbsp;

Danke,  
Achim&nbsp;
