PHPackages                             localgovdrupal/localgov\_subsites\_extras - 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. localgovdrupal/localgov\_subsites\_extras

Abandoned → [drupal/localgov\_subsites\_extras](/?search=drupal%2Flocalgov_subsites_extras)Drupal-module[Utility &amp; Helpers](/categories/utility)

localgovdrupal/localgov\_subsites\_extras
=========================================

Additional features for subsites in the LocalGovDrupal distribution.

1.x-dev(2mo ago)18.0k↓54.2%GPL-2.0-or-laterPHPCI failing

Since Mar 27Pushed 2mo ago8 watchersCompare

[ Source](https://github.com/localgovdrupal/localgov_subsites_extras)[ Packagist](https://packagist.org/packages/localgovdrupal/localgov_subsites_extras)[ Docs](https://github.com/localgovdrupal/localgov_subsites_extras)[ RSS](/packages/localgovdrupal-localgov-subsites-extras/feed)WikiDiscussions 1.x Synced today

READMEChangelog (5)Dependencies (5)Versions (15)Used By (0)

LocalGov Subsites Extras
========================

[](#localgov-subsites-extras)

This module let you create menu-driven subsites in your LGD site. The menu defines the structure of the subsite, and also lets you use Drupal's standard menu blocks and tools to display the subsite's navigation and manage the hierarchy of the pages within it.

To use it:

1. Install and enable the module.
2. Add a subsite overview page. Choose a theme, and choose to create a menu link in the subsites menu. Save the page.
3. When you view the page, you can inspect the markup, and should see classes 'subsite-extra' and 'subsite-extra--color-x' (where x is the theme you chose) applied to the body tag. You can use these classes to style the subsite in different colour schemes.
4. Create another page. This time, choose to create a menu link and select the page you just created under "Parent link".
5. Again, you can inspect the markup of this new page, and should see classes 'subsite-extra' and 'subsite-extra--color-x' on the body tag, picked up from the parent.
6. To set up the menus, place a new menu block. Choose the 'subsites' menu when creating the block. Under "Menu levels" set Initial visibility level to 2, and no of levels to display to 1.
7. This module will add a variable into the menu template for the subsite homepage when you're in a subsite. (EG, this is the link styled like a house on ). To make use of this, add this to your menu template:

```
  {% if subsite_homepage_link %}

      {{ subsite_homepage_link }}

  {% endif %}

```

Advanced usage:
---------------

[](#advanced-usage)

By default, this module will work with the content types and fields provided by localgov\_subsites. It doesn't have to though. You can use any node type you like as a subsite homepage, and any field you like to determine the colour scheme. One current limitation is that the code currently assumes that the theme field is of a type that has 'value' as a key. EG a string list field.

There's currently no UI to set these options, but you can change them by editing the localgov\_subsites\_extras.settings config in your site's exported config, then importing, or overriding it in settings.php like this:

```
$config['localgov_subsites_extras.settings'] = [
  'subsite_types' => ['localgov_subsites_overview'],
  'theme_field' => 'localgov_subsites_theme',
];

```

###  Health Score

42

—

FairBetter than 88% of packages

Maintenance84

Actively maintained with recent releases

Popularity25

Limited adoption so far

Community19

Small or concentrated contributor base

Maturity35

Early-stage or recently created project

 Bus Factor1

Top contributor holds 72.9% 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 ~149 days

Total

5

Last Release

80d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/dd550678a915c9a6d451d08851556a1c866f8cc7c0e3f864b498a45d4d930577?d=identicon)[stephen-cox](/maintainers/stephen-cox)

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

![](https://www.gravatar.com/avatar/848d88262b2f9d984d12b55bd4a2e2f0e1d3c7abe9c63fc5cc13ecbab75cd19e?d=identicon)[ekes](/maintainers/ekes)

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

![](https://avatars.githubusercontent.com/u/326243?v=4)[Rupert Jabelman](/maintainers/rupertj)[@rupertj](https://github.com/rupertj)

---

Top Contributors

[![rupertj](https://avatars.githubusercontent.com/u/326243?v=4)](https://github.com/rupertj "rupertj (70 commits)")[![finnlewis](https://avatars.githubusercontent.com/u/326588?v=4)](https://github.com/finnlewis "finnlewis (12 commits)")[![Adnan-cds](https://avatars.githubusercontent.com/u/50206849?v=4)](https://github.com/Adnan-cds "Adnan-cds (10 commits)")[![millnut](https://avatars.githubusercontent.com/u/8024370?v=4)](https://github.com/millnut "millnut (3 commits)")[![Polynya](https://avatars.githubusercontent.com/u/56226?v=4)](https://github.com/Polynya "Polynya (1 commits)")

### Embed Badge

![Health badge](/badges/localgovdrupal-localgov-subsites-extras/health.svg)

```
[![Health](https://phpackages.com/badges/localgovdrupal-localgov-subsites-extras/health.svg)](https://phpackages.com/packages/localgovdrupal-localgov-subsites-extras)
```

###  Alternatives

[cakemanager/cakephp-utils

Plugin for CakePHP 3.x with useful components and behaviors

3180.9k4](/packages/cakemanager-cakephp-utils)[arielmejiadev/filament-printable

Package to get your Filament Resources Printable

185.5k](/packages/arielmejiadev-filament-printable)

PHPackages © 2026

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