# Shopware\_Modules\_Articles\_GetArticleById\_FilterArticle für Shopware 5.2

**URL:** https://forum.shopware.com/t/shopware-modules-articles-getarticlebyid-filterarticle-fur-shopware-5-2/41771
**Category:** Programmierung
**Created:** [28. November 2016 um 09:10 UTC](https://forum.shopware.com/t/shopware-modules-articles-getarticlebyid-filterarticle-fur-shopware-5-2/41771 "2016-11-28T09:10:38Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![hbee](https://avatars.discourse-cdn.com/v4/letter/h/f08c70/32.png) [@hbee](https://forum.shopware.com/u/hbee)
#### Post date: [28. November 2016 um 09:10 UTC](https://forum.shopware.com/t/shopware-modules-articles-getarticlebyid-filterarticle-fur-shopware-5-2/41771/1 "2016-11-28T09:10:38Z")

</div>

hi, ich für über ein Plugin dem Artikel im Frontend neue Variablen hinzu.

Dies habe ich bisher über das Event&nbsp;Shopware\_Modules\_Articles\_GetArticleById\_FilterArticle gemacht.&nbsp;

```
$sArticle = $args->getReturn();
$sArticle['product_types_details'] = 'bla';
return $sArticle;

```

Das funktioniert in Shopware 5.2 nicht mehr da das Event entfernt wurde. Welche Alternative gibt es jetzt?

Vielen Dank.

&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: [28. November 2016 um 09:53 UTC](https://forum.shopware.com/t/shopware-modules-articles-getarticlebyid-filterarticle-fur-shopware-5-2/41771/2 "2016-11-28T09:53:46Z")

</div>

im PostDispatchEvent des Detail-Controllers so etwas in die Richtung:

```
$article = $args->getSubject()->View()->sArticle;
$article['x'] = 'y';
$View()->sArticle = $article;

```

&nbsp;
