# Cms-Elements, Limit für jede group einzeln für Dynamische Product Group/Slider?

**URL:** <https://forum.shopware.com/t/cms-elements-limit-fuer-jede-group-einzeln-fuer-dynamische-product-group-slider/98585>\
**Category:** Programmierung\
**Created:** [17. Februar 2023 um 09:46 UTC](https://forum.shopware.com/t/cms-elements-limit-fuer-jede-group-einzeln-fuer-dynamische-product-group-slider/98585 "2023-02-17T09:46:04Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![hermetic](https://avatars.discourse-cdn.com/v4/letter/h/76d3ee/32.png) [@hermetic](https://forum.shopware.com/u/hermetic)\
**Post date:** [17. Februar 2023 um 09:46 UTC](https://forum.shopware.com/t/cms-elements-limit-fuer-jede-group-einzeln-fuer-dynamische-product-group-slider/98585/1 "2023-02-17T09:46:04Z")

</div>

Hi, versuche gerade ein maximales Anzeigelimit pro dynamische Product Group in einem Cms.  
Weis jemand, wie man das für z.b. einen Slider macht?  
(Gesamtlimit über alle groups geht, ist aber unschön

```auto
$criteria = new Criteria();

        $criteria->addFilter(new EqualsAnyFilter('streamIds', $ids));
        $criteria->addAssociation('streams');
        $criteria->addAssociation('options.group');

        $criteria->setLimit($limit);

```

)
