PHPackages                             jorisnoo/craft-sidebar-relations - 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. jorisnoo/craft-sidebar-relations

ActiveCraft-module[Utility &amp; Helpers](/categories/utility)

jorisnoo/craft-sidebar-relations
================================

Adds nested element sources to the Craft CMS sidebar based on entry relations

1.0.0(1mo ago)0195↓51.5%MITPHPPHP ^8.2

Since May 12Pushed 1mo agoCompare

[ Source](https://github.com/jorisnoo/craft-sidebar-relations)[ Packagist](https://packagist.org/packages/jorisnoo/craft-sidebar-relations)[ RSS](/packages/jorisnoo-craft-sidebar-relations/feed)WikiDiscussions main Synced 4w ago

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

Craft Sidebar Relations
=======================

[](#craft-sidebar-relations)

A [Craft CMS](https://craftcms.com/) module that adds nested element sources to the control panel sidebar based on entry relations. Filter a section's entries by their related entries from another section, directly from the sidebar navigation.

Features
--------

[](#features)

- Adds nested sources under any section in the entries sidebar
- Filter entries by their relations to entries in another section
- Supports custom query conditions on the relation source
- Config-based setup with a fluent API

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

[](#requirements)

- PHP 8.2+
- Craft CMS 5

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

[](#installation)

```
composer require jorisnoo/craft-sidebar-relations
```

Then register the module in your `config/app.php`:

```
return [
    'modules' => [
        'sidebar-relations' => \Noo\CraftSidebarRelations\SidebarRelations::class,
    ],
    'bootstrap' => ['sidebar-relations'],
];
```

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

[](#configuration)

Create a `config/sidebar-relations.php` file in your Craft project:

```
use Noo\CraftSidebarRelations\config\SidebarRelationsConfig;

return SidebarRelationsConfig::create()
    ->sources([
        [
            'section' => 'articles',
            'relation' => 'categories',
        ],
        [
            'section' => 'projects',
            'relation' => 'clients',
            'where' => [
                'level' => 1,
            ],
        ],
    ]);
```

### Source Options

[](#source-options)

Each source in the array accepts the following keys:

- `section` — The handle of the section to add nested sources to
- `relation` — The handle of the section whose entries will become the nested source items
- `where` — (optional) Additional query parameters applied to the relation query (e.g. `level`, `status`, `orderBy`)

In the example above, the "Articles" section in the sidebar would get nested items for each entry in the "Categories" section. Clicking a nested item filters the article list to only show articles related to that category.

License
-------

[](#license)

The MIT License (MIT). Please see [LICENSE](LICENSE.md) for more information.

###  Health Score

42

—

FairBetter than 89% of packages

Maintenance90

Actively maintained with recent releases

Popularity15

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity46

Maturing project, gaining track record

 Bus Factor1

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

49d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/0440b6ac994d5566a2ef5886fbac104a73f8458e70dbd20085e241ab0f647e0d?d=identicon)[jorgenoo](/maintainers/jorgenoo)

---

Top Contributors

[![jorisnoo](https://avatars.githubusercontent.com/u/5810772?v=4)](https://github.com/jorisnoo "jorisnoo (5 commits)")

---

Tags

cmsCraftcraftcmsnavigationrelationssidebar

###  Code Quality

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/jorisnoo-craft-sidebar-relations/health.svg)

```
[![Health](https://phpackages.com/badges/jorisnoo-craft-sidebar-relations/health.svg)](https://phpackages.com/packages/jorisnoo-craft-sidebar-relations)
```

###  Alternatives

[craftcms/feed-me

Import content from XML, RSS, CSV or JSON feeds into entries, categories, Craft Commerce products, and more.

292943.4k27](/packages/craftcms-feed-me)[verbb/navigation

Create navigation menus for your site.

92698.4k18](/packages/verbb-navigation)[verbb/formie

The most user-friendly forms plugin for Craft.

100387.6k59](/packages/verbb-formie)[verbb/workflow

Enforce multi-step review processes for creating entries.

138123.0k1](/packages/verbb-workflow)[verbb/comments

Add comments to your site.

13753.7k](/packages/verbb-comments)[verbb/vizy

A flexible visual editor field for Craft.

4249.7k](/packages/verbb-vizy)

PHPackages © 2026

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