PHPackages                             jzubero/silverstripe-sitetree-labels - 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. jzubero/silverstripe-sitetree-labels

ActiveSilverstripe-module

jzubero/silverstripe-sitetree-labels
====================================

Label your Page items for better orientation in large SiteTrees.

1.1.2(5y ago)41.1k3MITPHPPHP &gt;=5.5.0, &lt;7.2CI failing

Since Oct 15Pushed 5y ago1 watchersCompare

[ Source](https://github.com/JZubero/silverstripe-sitetree-labels)[ Packagist](https://packagist.org/packages/jzubero/silverstripe-sitetree-labels)[ RSS](/packages/jzubero-silverstripe-sitetree-labels/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (3)Versions (9)Used By (0)

SiteTree Labeling
=================

[](#sitetree-labeling)

[![Build Status](https://camo.githubusercontent.com/075d509902e503eaf2e4ef53c03d320dcff1b75e43fe02baca60d595b32c3743/68747470733a2f2f7472617669732d63692e6f72672f4a5a756265726f2f73696c7665727374726970652d73697465747265652d6c6162656c732e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/JZubero/silverstripe-sitetree-labels)[![Example SiteTree Label View](docs/demo-shot1.jpg)](docs/demo-shot1.jpg)

Help to enrich your big and messy SiteTrees with some extra top-level information using labels.

Besides your custom labels the module will look for the [Menu Manager](https://github.com/heyday/silverstripe-menumanager) and auto-assign the MenuSet names to the Pages.

Install
-------

[](#install)

`composer require jzubero/silverstripe-sitetree-labels`

Do not forget to `dev/build?flush=all`.

Dependencies
------------

[](#dependencies)

- silverstripe/cms:^3.2
- ryanpotter/silverstripe-color-field:^0.1.0

Features
--------

[](#features)

- GridField in Settings for adding and linking labels
- Integration for Menu Manager Module
- Report for looking up pages linked to a certain label

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

[](#configuration)

You can adjust the modules' behaviour through the Config API.

```
SiteTree:
  show_labels: true|false
SiteTreeLabel:
  label_color: '#426ef4' # Default label color
  show_menu_labels: true|false # Flag for menu labels generated by HeyDay's Menu Manager Module (if available)
```

Customization
-------------

[](#customization)

If you want to change the label look you can apply your custom style definitions to the class `.sitetree-label`. Default style:

```
.sitetree-label {
    border-radius: 3px;
    font-size: 0.75rem;
    padding: 2px 4px;
    color: #fff;
    text-shadow: none;
}
```

Extending
---------

[](#extending)

You can add extra labels via code by using the `updateSiteTreeLabels` hook method.

```
public function updateSiteTreeLabels(ArrayList &$labels) {
    $labels->add([
        'Title': 'My Custom Label',
        'Color': '#ed135a'
    ]);
}
```

Thanks... 👏
-----------

[](#thanks-clap)

- ...**wmk** for contributing to this module.
- ...**Andreas Spannbauer, Eric Hes** and **Zauberfisch** for discussing the module idea with me at StripeConEU 2017.
- ...**blueskies79** for her [bug tracing](https://github.com/JZubero/silverstripe-sitetree-labels/issues/5) skills.

Maintainer
----------

[](#maintainer)

- JZubero

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 84.6% 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 ~201 days

Recently: every ~297 days

Total

7

Last Release

1927d ago

Major Versions

0.1.2 → 1.0.02017-11-02

### Community

Maintainers

![](https://www.gravatar.com/avatar/441f0e8f95c17048417a33f37e35d5ffdd4c07902cbedaf7f5786f4b7c454284?d=identicon)[JZubero](/maintainers/JZubero)

---

Top Contributors

[![JZubero](https://avatars.githubusercontent.com/u/13751426?v=4)](https://github.com/JZubero "JZubero (22 commits)")[![wernerkrauss](https://avatars.githubusercontent.com/u/1043925?v=4)](https://github.com/wernerkrauss "wernerkrauss (4 commits)")

---

Tags

labelssilverstripesilverstripe-modulesitetreesitetree-labeling

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/jzubero-silverstripe-sitetree-labels/health.svg)

```
[![Health](https://phpackages.com/badges/jzubero-silverstripe-sitetree-labels/health.svg)](https://phpackages.com/packages/jzubero-silverstripe-sitetree-labels)
```

###  Alternatives

[silvershop/core

Provides an ecommerce product catalog, shopping cart, and order management system

11340.0k42](/packages/silvershop-core)[silverstripe-terraformers/gridfield-rich-filter-header

Rich filter header component for GridField

1325.7k1](/packages/silverstripe-terraformers-gridfield-rich-filter-header)[sunnysideup/ecommerce

Silverstripe E-commerce Application

257.2k79](/packages/sunnysideup-ecommerce)[silverstripe/superglue

102.2k](/packages/silverstripe-superglue)

PHPackages © 2026

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