# Filter

**URL:** https://forum.shopware.com/t/filter/40189
**Category:** Programmierung
**Created:** [29. September 2016 um 12:12 UTC](https://forum.shopware.com/t/filter/40189 "2016-09-29T12:12:21Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![schoppy](https://avatars.discourse-cdn.com/v4/letter/s/ea666f/32.png) [@schoppy](https://forum.shopware.com/u/schoppy)
#### Post date: [29. September 2016 um 12:12 UTC](https://forum.shopware.com/t/filter/40189/1 "2016-09-29T12:12:21Z")

</div>

Hallo,

wir befinden uns momentan in der Umstellung von Shopware 4 auf Shopware 5.1.6 (wegen Template).

In Shopware 4 haben wir per Plugin die Filter auf der Startseite anzeigen lassen.

```
        $categoryId = 3;
        $articleProperties = Shopware()->Modules()->Articles()->sGetCategoryProperties($categoryId, null);
            $this->View()->assign(array(
                   'sPropertiesOptionsOnly' => $articleProperties['filterOptions']['optionsOnly'] ?: array(),
                   'sPropertiesGrouped' => $articleProperties['filterOptions']['grouped'] ?: array()
            ));

```

Leider gibt es die Funktion: sGetCategoryProperties in den Articles Modules nicht mehr.

Frage, wo finde ich die entsprechende Funktion nun in SW 5?

Gruss

Schoppy

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
