# $sArticles array auf Detailseite (detail.tpl) holen

**URL:** https://forum.shopware.com/t/sarticles-array-auf-detailseite-detail-tpl-holen/38573
**Category:** Programmierung
**Tags:** customelements, widgets
**Created:** [27. Juli 2016 um 11:49 UTC](https://forum.shopware.com/t/sarticles-array-auf-detailseite-detail-tpl-holen/38573 "2016-07-27T11:49:25Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![natelo](https://avatars.discourse-cdn.com/v4/letter/n/f07891/32.png) [@natelo](https://forum.shopware.com/u/natelo)
#### Post date: [27. Juli 2016 um 11:49 UTC](https://forum.shopware.com/t/sarticles-array-auf-detailseite-detail-tpl-holen/38573/1 "2016-07-27T11:49:25Z")

</div>

Hallo zusammen

Wir versuchen gerade, den Shop zu customizen und wollen ein Artikellisting einer bestimmten Kategorie auf der Detailseite einer anderen Kategorie anzeigen lassen.

Das Problem ist jedoch, dass er das $sArticles array auf der detail.tpl nicht kennt. Wie kriegen wir das?

Würde es nicht reichen die Funktion getArticlesByCategory() aus der sArticles.php aufzurufen? Wie machen wir das?

Herzlichen Dank euch!!

Folgendes Snippet haben wir bisher eingebunden:  
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;

```
{block name="frontend_listing_listing_container"}
  
    {block name="frontend_listing_listing_content"}
      
        
        {* Actual listing *}
          {block name="frontend_listing_list_inline"}
            {foreach $sArticles as $sArticle}
                {include file="frontend/listing/box_article.tpl"}
            {/foreach}
          {/block}
       
    {/block}
  
{/block}

```

&nbsp;

---

<div class="post-metadata">

### Author: ![steinsoftware](https://avatars.discourse-cdn.com/v4/letter/s/b487fb/32.png) [@steinsoftware](https://forum.shopware.com/u/steinsoftware)
#### Post date: [27. Juli 2016 um 12:27 UTC](https://forum.shopware.com/t/sarticles-array-auf-detailseite-detail-tpl-holen/38573/2 "2016-07-27T12:27:57Z")

</div>

Dazu reichen keine Theme-Anpassungen. Das muss man mit einem Plug-In umsetzen:

[https://developers.shopware.com/developers-guide/](https://developers.shopware.com/developers-guide/)

---

<div class="post-metadata">

### Author: ![Synonymous](https://avatars.discourse-cdn.com/v4/letter/s/57b2e6/32.png) [@Synonymous](https://forum.shopware.com/u/Synonymous)
#### Post date: [27. Juli 2016 um 12:38 UTC](https://forum.shopware.com/t/sarticles-array-auf-detailseite-detail-tpl-holen/38573/3 "2016-07-27T12:38:36Z")

</div>

Wäre es nicht möglich das über einen Product-Stream zu lösen?

---

<div class="post-metadata">

### Author: ![natelo](https://avatars.discourse-cdn.com/v4/letter/n/f07891/32.png) [@natelo](https://forum.shopware.com/u/natelo)
#### Post date: [2. August 2016 um 21:49 UTC](https://forum.shopware.com/t/sarticles-array-auf-detailseite-detail-tpl-holen/38573/4 "2016-08-02T21:49:02Z")

</div>

Vielen Dank für eure Antworten. Wir haben es jetzt mit einem Product-Stream gelöst.

---

<div class="post-metadata">

### Author: ![Synonymous](https://avatars.discourse-cdn.com/v4/letter/s/57b2e6/32.png) [@Synonymous](https://forum.shopware.com/u/Synonymous)
#### Post date: [3. August 2016 um 05:46 UTC](https://forum.shopware.com/t/sarticles-array-auf-detailseite-detail-tpl-holen/38573/5 "2016-08-03T05:46:15Z")

</div>

![Wearing-Sunglasses](https://forum.shopware.com/plugins/CKEditor/plugins/smiley/images/wearing-sunglasses.png "Wearing-Sunglasses")&nbsp;Sehr schön…
