PHPackages                             evanshunt/lumberjack-sort-and-summary - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. evanshunt/lumberjack-sort-and-summary

ActiveSilverstripe-vendormodule[Utility &amp; Helpers](/categories/utility)

evanshunt/lumberjack-sort-and-summary
=====================================

Uses $summary\_fields, $default\_sort, and $plural\_name for LumberJack when only one class is allowed for children

v3.0.0(1mo ago)49.5k↓50%5[1 PRs](https://github.com/evanshunt/lumberjack-sort-and-summary/pulls)1MITPHP

Since Jun 22Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/evanshunt/lumberjack-sort-and-summary)[ Packagist](https://packagist.org/packages/evanshunt/lumberjack-sort-and-summary)[ Docs](http://github.com/evanshunt/lumberjack-sort-and-summary)[ RSS](/packages/evanshunt-lumberjack-sort-and-summary/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (5)Dependencies (6)Versions (8)Used By (1)

Lumberjack Sort and Summary
===========================

[](#lumberjack-sort-and-summary)

A common use case for [SilverStripe's Lumberjack module](https://github.com/silverstripe/silverstripe-lumberjack) is [the holder/page pattern](https://www.silverstripe.org/learn/lessons/v4/the-holderpage-pattern-1). In this case, the holder page will only have one type of child page.

Because Lumberjack is built flexible enought to accommodate multiple types of child pages, some features that we might expect when only a single page type is allowed are missing. Such as:

- Using the default sort order for the child page type
- Listing the pages with the defined summary fields
- Labeling the listings with the name of the name of the child type instead of "Child Pages"

This module applies the above when a single child type is defined for the parent holder page.

*Thanks to [@bcairns](https://github.com/bcairns) for the code and documentation this module was based on*

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

[](#installation)

`composer require evanshunt/lumberjack-sort-and-summary`

Usage
-----

[](#usage)

Define `$allowed_children` for the parent page. (Can be done either in yml config or model)

```
namespace MyNamespace;

use Page;

class StoryLandingPage extends Page
{
    private static $allowed_children = [
        StoryDetailsPage::class
    ];
}
```

Define `$plural_name`, `$summary_fields`, and `$default_sort` for child page.

```
namespace MyNamespace;

use Page;

class StoryDetailsPage extends Page
{
    private static $table_name = 'StoryDetails';
    private static $singular_name = 'Story';
    private static $plural_name = 'Stories';

    private static $can_be_root = false;
    private static $default_parent = StoryLandingPage::class;

    private static $db = [
        'PublicationDate' => 'Date',
    ];

    private static $summary_fields = [
        'Title',
        'PublicationDate'
    ];

    private static $default_sort = 'PublicationDate DESC';
}
```

Install and configure Lumberjack

```
MyNamespace\StoryDetailsPage:
  show_in_sitetree: false
MyNamespace\StoryLandingPage:
  extensions:
    - SilverStripe\Lumberjack\Model\Lumberjack
```

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

[](#configuration)

No additional configuration is needed. This module overloads methods in Lumberjack itself, to check the value of `$allowed_children` on the parent class, and if only one class is defined, it will apply the changes based on the config values in the child class.

###  Health Score

52

—

FairBetter than 96% of packages

Maintenance89

Actively maintained with recent releases

Popularity30

Limited adoption so far

Community18

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 64.3% 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 ~525 days

Total

5

Last Release

56d ago

Major Versions

v1.0.2 → v2.0.02024-02-02

v2.0.0 → v3.0.02026-03-23

### Community

Maintainers

![](https://www.gravatar.com/avatar/a53b5128191a72d106ed446d8c361ff66f163f564037a3adc05d126745a75289?d=identicon)[davejtoews](/maintainers/davejtoews)

![](https://www.gravatar.com/avatar/9771410446b7f3ffa84e9fa87891cb20828430853ef6cc74063a460a475be27b?d=identicon)[ehdeveloped](/maintainers/ehdeveloped)

---

Top Contributors

[![davejtoews](https://avatars.githubusercontent.com/u/9664035?v=4)](https://github.com/davejtoews "davejtoews (9 commits)")[![markcurrie](https://avatars.githubusercontent.com/u/51332811?v=4)](https://github.com/markcurrie "markcurrie (2 commits)")[![sunnysideup](https://avatars.githubusercontent.com/u/167154?v=4)](https://github.com/sunnysideup "sunnysideup (2 commits)")[![TheSceneman](https://avatars.githubusercontent.com/u/88803020?v=4)](https://github.com/TheSceneman "TheSceneman (1 commits)")

---

Tags

silverstripelumberjack

### Embed Badge

![Health badge](/badges/evanshunt-lumberjack-sort-and-summary/health.svg)

```
[![Health](https://phpackages.com/badges/evanshunt-lumberjack-sort-and-summary/health.svg)](https://phpackages.com/packages/evanshunt-lumberjack-sort-and-summary)
```

###  Alternatives

[silverstripe/blog

A fresh take on blogging in Silverstripe set out to tackle the issue of a cluttered Site Tree.

104739.2k31](/packages/silverstripe-blog)

PHPackages © 2026

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