PHPackages                             dynamic/silverstripe-collection - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Search &amp; Filtering](/categories/search)
4. /
5. dynamic/silverstripe-collection

ActiveSilverstripe-vendormodule[Search &amp; Filtering](/categories/search)

dynamic/silverstripe-collection
===============================

Display a filterable collection of pages or dataobjects on a page.

3.0.0(2y ago)414.5k5[1 issues](https://github.com/dynamic/silverstripe-collection/issues)2BSD-3-ClausePHP

Since Feb 14Pushed 7mo ago6 watchersCompare

[ Source](https://github.com/dynamic/silverstripe-collection)[ Packagist](https://packagist.org/packages/dynamic/silverstripe-collection)[ RSS](/packages/dynamic-silverstripe-collection/feed)WikiDiscussions master Synced today

READMEChangelog (10)Dependencies (2)Versions (16)Used By (2)

Silverstripe Collection
=======================

[](#silverstripe-collection)

Display a filterable collection of pages or dataobjects on a page.

[![Build Status](https://camo.githubusercontent.com/7170a0b8de3e16e3f047710bd647016e568c0afb80ee7b029937f2697fc3da4d/68747470733a2f2f7472617669732d63692e6f72672f64796e616d69632f73696c7665727374726970652d636f6c6c656374696f6e2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/dynamic/silverstripe-collection)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/c396323fa643a2054fcd390917755d1ea06aa091d0a49e0f1b4217a03a6367ae/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f64796e616d69632f73696c7665727374726970652d636f6c6c656374696f6e2f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/dynamic/silverstripe-collection/?branch=master)[![Code Coverage](https://camo.githubusercontent.com/07fad568009d4a27d8c0a6c4435febf1d8b9021c4db1bd6989d36d4cddc979f5/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f64796e616d69632f73696c7665727374726970652d636f6c6c656374696f6e2f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/dynamic/silverstripe-collection/?branch=master)[![Build Status](https://camo.githubusercontent.com/d7d08ea99f46b1f5f9d42dfccbc96175a2b8e6f443f803daf93c0f8490d6c6ae/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f64796e616d69632f73696c7665727374726970652d636f6c6c656374696f6e2f6261646765732f6275696c642e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/dynamic/silverstripe-collection/build-status/master)[![codecov](https://camo.githubusercontent.com/7468a83bd4a35aba9c97dad4dbaface4a14216094b2ddb32fafbf082d88fc0fb/68747470733a2f2f636f6465636f762e696f2f67682f64796e616d69632f73696c7665727374726970652d636f6c6c656374696f6e2f6272616e63682f6d61737465722f67726170682f62616467652e737667)](https://codecov.io/gh/dynamic/silverstripe-collection)

[![Latest Stable Version](https://camo.githubusercontent.com/fb4c9848737e2f7cab0a745d492752a6fc9d247b31fb29c192d848f3960ce6e8/68747470733a2f2f706f7365722e707567782e6f72672f64796e616d69632f73696c7665727374726970652d636f6c6c656374696f6e2f762f737461626c65)](https://packagist.org/packages/dynamic/silverstripe-collection)[![Total Downloads](https://camo.githubusercontent.com/70f95115dcb9dd5e5aeb2d6a624e0906c44e4eb2bead0479388075a663b103b4/68747470733a2f2f706f7365722e707567782e6f72672f64796e616d69632f73696c7665727374726970652d636f6c6c656374696f6e2f646f776e6c6f616473)](https://packagist.org/packages/dynamic/silverstripe-collection)[![Latest Unstable Version](https://camo.githubusercontent.com/a21b4bc41fc37544b2d1141ddf6ec69a18741760dac2db3e904747ec3acb2ce9/68747470733a2f2f706f7365722e707567782e6f72672f64796e616d69632f73696c7665727374726970652d636f6c6c656374696f6e2f762f756e737461626c65)](https://packagist.org/packages/dynamic/silverstripe-collection)[![License](https://camo.githubusercontent.com/88ee355d403706c045d133240bc0fd513cd7bf50f2b68804b136c913ba5b51f1/68747470733a2f2f706f7365722e707567782e6f72672f64796e616d69632f73696c7665727374726970652d636f6c6c656374696f6e2f6c6963656e7365)](https://packagist.org/packages/dynamic/silverstripe-collection)

Requirements
------------

[](#requirements)

- SilverStripe 4.x

Installation
------------

[](#installation)

`composer require dynamic/silverstripe-collection`

Configuration
-------------

[](#configuration)

In your config.yml:

```
Your/Namespace/ExamplePageController:
  managed_object: ExampleObject
  page_size: 10
  extensions:
    - Dynamic\Collection\CollectionExtension

```

Managed Page/DataObject
-----------------------

[](#managed-pagedataobject)

Collection will create a search form based on the managed object's `$searchable_fields`.

```
private static $searchable_fields = [
  'Title' => [
    'title' => 'Name',
  ],
  'Category.ID' => [
    'title' => 'Category',
  ],
];

```

For advanced setups, you can also create `getCustomSearchContext()` on your managed object.

To include a sorting dropdown field, create a `getSortOptions()` method on your managed object:

```
public function getSortOptions()
{
  return array(
    'Created' => 'Date',
    'Title' => 'Name A-Z',
    'Title DESC' => 'Name Z-A',
  );
}

```

Templates
---------

[](#templates)

`$CollectionSearchForm` will display the search form.

You have mutliple options to loop through the results in your template:

- `$Collection` will display a list of all results
- `$PaginatedList` will paginate the results
- `$GroupedList.GroupedBy(CategoryTitle)` will display results grouped by the variable you pass

Documentation
-------------

[](#documentation)

See the [docs/en](docs/en/index.md) folder.

###  Health Score

43

—

FairBetter than 89% of packages

Maintenance39

Infrequent updates — may be unmaintained

Popularity31

Limited adoption so far

Community19

Small or concentrated contributor base

Maturity71

Established project with proven stability

 Bus Factor1

Top contributor holds 77.4% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~184 days

Recently: every ~32 days

Total

15

Last Release

849d ago

Major Versions

1.0.0-beta1 → 2.0.0-alpha12017-07-08

1.0.0-beta3 → 2.0.0-beta12018-06-14

1.0.x-dev → 3.0.0-beta12023-10-30

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/867942?v=4)[Dynamic](/maintainers/dynamic)[@dynamic](https://github.com/dynamic)

---

Top Contributors

[![jsirish](https://avatars.githubusercontent.com/u/1163643?v=4)](https://github.com/jsirish "jsirish (24 commits)")[![mak001](https://avatars.githubusercontent.com/u/1750550?v=4)](https://github.com/mak001 "mak001 (5 commits)")[![muskie9](https://avatars.githubusercontent.com/u/870751?v=4)](https://github.com/muskie9 "muskie9 (2 commits)")

---

Tags

hacktoberfestsilverstripesilverstripe

### Embed Badge

![Health badge](/badges/dynamic-silverstripe-collection/health.svg)

```
[![Health](https://phpackages.com/badges/dynamic-silverstripe-collection/health.svg)](https://phpackages.com/packages/dynamic-silverstripe-collection)
```

###  Alternatives

[wilr/silverstripe-googlesitemaps

SilverStripe support for the Google Sitemaps XML, enabling Google and other search engines to see all urls on your site. This helps your SilverStripe website rank well in search engines, and to encourage the information on your site to be discovered quickly.

76661.3k35](/packages/wilr-silverstripe-googlesitemaps)[silverstripe/fulltextsearch

Adds support for Fulltext Search engines like Sphinx and Solr to SilverStripe CMS

44300.2k12](/packages/silverstripe-fulltextsearch)[quinninteractive/silverstripe-seo

An all-in-one SEO module for SilverStripe

3328.7k](/packages/quinninteractive-silverstripe-seo)[heyday/silverstripe-elastica

Provides Elastic Search integration for SilverStripe DataObjects using Elastica

1138.5k1](/packages/heyday-silverstripe-elastica)[silverstripe-terraformers/gridfield-rich-filter-header

Rich filter header component for GridField

1326.2k1](/packages/silverstripe-terraformers-gridfield-rich-filter-header)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
