{"id":18866215,"url":"https://github.com/localgovdrupal/localgov_subsites_extras","last_synced_at":"2026-01-31T23:34:11.448Z","repository":{"id":224783233,"uuid":"762359578","full_name":"localgovdrupal/localgov_subsites_extras","owner":"localgovdrupal","description":"Create menu-driven subsites. Add any content to a subsite and generate a menu to navigate to it.","archived":false,"fork":false,"pushed_at":"2025-11-20T12:45:52.000Z","size":77,"stargazers_count":1,"open_issues_count":6,"forks_count":0,"subscribers_count":8,"default_branch":"1.x","last_synced_at":"2025-11-20T14:22:36.559Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/localgovdrupal.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-02-23T16:05:29.000Z","updated_at":"2025-11-20T12:20:04.000Z","dependencies_parsed_at":"2024-06-04T11:45:36.826Z","dependency_job_id":"8b9a78cb-c64e-4923-a5d1-8c277f4cf7bd","html_url":"https://github.com/localgovdrupal/localgov_subsites_extras","commit_stats":null,"previous_names":["localgovdrupal/localgov_subsites_extras"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/localgovdrupal/localgov_subsites_extras","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/localgovdrupal%2Flocalgov_subsites_extras","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/localgovdrupal%2Flocalgov_subsites_extras/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/localgovdrupal%2Flocalgov_subsites_extras/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/localgovdrupal%2Flocalgov_subsites_extras/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/localgovdrupal","download_url":"https://codeload.github.com/localgovdrupal/localgov_subsites_extras/tar.gz/refs/heads/1.x","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/localgovdrupal%2Flocalgov_subsites_extras/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28959898,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-31T23:03:11.038Z","status":"ssl_error","status_checked_at":"2026-01-31T22:56:44.691Z","response_time":128,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-08T05:05:57.721Z","updated_at":"2026-01-31T23:34:11.432Z","avatar_url":"https://github.com/localgovdrupal.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# LocalGov Subsites Extras\n\nThis module let you create menu-driven subsites in your LGD site. The menu defines the structure of the subsite,\nand also lets you use Drupal's standard menu blocks and tools to display the subsite's navigation and manage the\nhierarchy of the pages within it.\n\nTo use it:\n\n1) Install and enable the module.\n2) Add a subsite overview page. Choose a theme, and choose to create a menu link in the subsites menu. Save the page.\n3) 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.\n4) Create another page. This time, choose to create a menu link and select the page you just created under \"Parent link\".\n5) 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.\n6) 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. \n7) 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 https://www.lbhf.gov.uk/celebrating-hf). To make use of this, add this to your menu template: \n```\n  {% if subsite_homepage_link %}\n    \u003cdiv class=\"subsite--menu__title\"\u003e\n      {{ subsite_homepage_link }}\n    \u003c/div\u003e\n  {% endif %}\n```\n\n## Advanced usage:\n\nBy 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.\nOne 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.\n\nThere'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:\n```\n$config['localgov_subsites_extras.settings'] = [\n  'subsite_types' =\u003e ['localgov_subsites_overview'],\n  'theme_field' =\u003e 'localgov_subsites_theme',\n];\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flocalgovdrupal%2Flocalgov_subsites_extras","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flocalgovdrupal%2Flocalgov_subsites_extras","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flocalgovdrupal%2Flocalgov_subsites_extras/lists"}