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(3mo ago)0386↓64.2%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 6d 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 88% of packages

Maintenance87

Actively maintained with recent releases

Popularity17

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

95d 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 (6 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.

292960.7k37](/packages/craftcms-feed-me)[verbb/formie

The most user-friendly forms plugin for Craft.

101400.6k78](/packages/verbb-formie)[spicyweb/craft-neo

A Matrix-like field type with block hierarchy

393818.3k12](/packages/spicyweb-craft-neo)[verbb/navigation

Create navigation menus for your site.

90711.5k20](/packages/verbb-navigation)[nystudio107/craft-seomatic

SEOmatic facilitates modern SEO best practices &amp; implementation for Craft CMS 5. It is a turnkey SEO system that is comprehensive, powerful, and flexible.

1741.5M73](/packages/nystudio107-craft-seomatic)[verbb/hyper

A user-friendly links field for Craft.

24153.5k14](/packages/verbb-hyper)

PHPackages © 2026

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