PHPackages                             moritz-sauer-13/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. moritz-sauer-13/lumberjack-sort-and-summary

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

moritz-sauer-13/lumberjack-sort-and-summary
===========================================

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

0.1(8mo ago)03MITPHP

Since Oct 16Pushed 8mo agoCompare

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

READMEChangelog (1)Dependencies (3)Versions (2)Used By (0)

This is a fork from evanshunt/lumberjack-sort-and-summary to support SS6

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

25

—

LowBetter than 35% of packages

Maintenance59

Moderate activity, may be stable

Popularity3

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity25

Early-stage or recently created project

 Bus Factor1

Top contributor holds 57.1% 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

Unknown

Total

1

Last Release

262d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/237ff98c98e71b509c4dac62b31efaf7823cca011952ded67579a6cf763b7a47?d=identicon)[moritz-sauer-13](/maintainers/moritz-sauer-13)

---

Top Contributors

[![davejtoews](https://avatars.githubusercontent.com/u/9664035?v=4)](https://github.com/davejtoews "davejtoews (8 commits)")[![markcurrie](https://avatars.githubusercontent.com/u/51332811?v=4)](https://github.com/markcurrie "markcurrie (2 commits)")[![moritz-sauer-13](https://avatars.githubusercontent.com/u/43135946?v=4)](https://github.com/moritz-sauer-13 "moritz-sauer-13 (2 commits)")[![sunnysideup](https://avatars.githubusercontent.com/u/167154?v=4)](https://github.com/sunnysideup "sunnysideup (2 commits)")

---

Tags

silverstripelumberjack

### Embed Badge

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

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

###  Alternatives

[silverstripe/userforms

UserForms enables CMS users to create dynamic forms via a drag and drop interface and without getting involved in any PHP code

1371.1M85](/packages/silverstripe-userforms)[symbiote/silverstripe-advancedworkflow

Adds configurable workflow support to the CMS, with a GUI for creating custom workflow definitions.

46302.4k9](/packages/symbiote-silverstripe-advancedworkflow)[silverstripe/sharedraftcontent

Share draft page content with non-CMS users

21424.1k12](/packages/silverstripe-sharedraftcontent)[sunnysideup/ecommerce

Silverstripe E-commerce Application

247.3k84](/packages/sunnysideup-ecommerce)

PHPackages © 2026

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