diff --git a/src/QUI/Timeline/Controls/Timeline.php b/src/QUI/Timeline/Controls/Timeline.php index 57bcf57f3e514ffe9827808721322f3e2867a6db..b54ebc7b4922a60915cec5d26bf3e85ec58c8701 100644 --- a/src/QUI/Timeline/Controls/Timeline.php +++ b/src/QUI/Timeline/Controls/Timeline.php @@ -38,7 +38,8 @@ public function __construct($attributes = array()) 'displayCss' => false, 'itemtype' => 'http://schema.org/ItemList', 'child-itemtype' => 'https://schema.org/ListItem', - 'child-itemprop' => 'itemListElement' + 'child-itemprop' => 'itemListElement', + 'limit' => 10 )); parent::__construct($attributes); @@ -73,7 +74,8 @@ public function getBody() // for bricks $children = Utils::getSitesByInputList($Project, $parents, array( 'where' => $where, - 'order' => $this->getAttribute('order') + 'order' => $this->getAttribute('order'), + 'limit' => $this->getAttribute('limit') )); } else { // for site types @@ -88,7 +90,7 @@ public function getBody() 'Project' => $this->getProject(), 'children' => $children, 'showLinks' => $this->getAttribute('showLinks'), - 'imageFit' => $this->getAttribute('imageFit') + 'imageFit' => $this->getAttribute('imageFit') )); // load custom template (if set)