contao/import — Issue #2652: Add numberOfItems to ContentGallery
Author: importer
Created: 2011-11-29 19:55:31+00:00
State: open
Labels: Accepted, Feature, frontend

I've used this featured quite a lot, and clients really like this feature. They want to drop lots of images into a folder, then choose a RANDOM option for the ContentGallery to display a random list of images and then they want to only show 5 of them. Currently we have to edit a custom gallery_xxx.tpl template and limit the $body parsing there, but it would be so simple to add this feature in the CE's option list (numberOfItems smallint(5) and then a text field defaulting to 0), then you can limit the number of images using the min(count($images),$this->numberOfItems) otherwise if there are only 2 images and you limit it to 5, it should only show 2 of course.

--- _Originally created by thyon on October 31st, 2010, at 11:57am (ID 2652)_