# Kategorienamen in detail \> content \> buy\_container ausgeben

**URL:** <https://forum.shopware.com/t/kategorienamen-in-detail-content-buy-container-ausgeben/88299>\
**Category:** Shopware 5\
**Created:** [11. Juni 2021 um 15:44 UTC](https://forum.shopware.com/t/kategorienamen-in-detail-content-buy-container-ausgeben/88299 "2021-06-11T15:44:15Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![future](https://avatars.discourse-cdn.com/v4/letter/f/c57346/32.png) [@future](https://forum.shopware.com/u/future)\
**Post date:** [11. Juni 2021 um 15:44 UTC](https://forum.shopware.com/t/kategorienamen-in-detail-content-buy-container-ausgeben/88299/1 "2021-06-11T15:44:16Z")

</div>

Hallo zusammen, ich möchte in detail \> content \> buy\_container nochmals den Kategorienamen des Artikels ausgeben, bekomme das jedoch nicht hin. Die ID steht ja in {$sArticle.categoryID} - wie komme ich nun zum Namen? Vielen Dank im Voraus für einen Denkanstoß.

Es grüßt  
future

---

<div class="post-metadata">

**Author:** ![phil](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/phil/32/13661_2.png) [@phil](https://forum.shopware.com/u/phil)\
**Post date:** [11. Juni 2021 um 19:37 UTC](https://forum.shopware.com/t/kategorienamen-in-detail-content-buy-container-ausgeben/88299/2 "2021-06-11T19:37:47Z")

</div>

Hi future,

(ungetestet) ich denke du kannst vermutlich direkt über den Index drauf zugreifen, also  
`{$categories[$sArticle.categoryID].description}`

Falls das nicht klappt, musst du wohl mit einem foreach über alle Kategorien iterieren und dann .description derjenigen ausgeben, welche die gleiche .id hat. Schau dir dafür mal an, wie es in [sidebar-categories.tpl](https://github.com/shopware/shopware/blob/5.7/themes/Frontend/Bare/frontend/index/sidebar-categories.tpl) gemacht wird.

LG Phil
