Screen shot of subsite node configuration options

This project is not covered by Drupal’s security advisory policy.

Subsite lets you make any node or set of nodes look like a different website by overriding the theme, branding, main menu, and more. Perfect for event and campaign micro-sites etc, subsite has been designed to be used by editors as part of the editorial process. Configuration for each subsite is stored with the node in a field which means it supports content revisions and works with your usual content workflow.

Features

  • Lightweight, field-based solution - it's not intended as a replacement to Domain Access or Organic Groups.
  • Designed to be used by content editors - not site admins.
  • Any node or set of nodes can make a subsite.
  • Have as many sub-sites as you like.
  • All configuration is saved in a field attached to a single node for each subsite.
  • Any content type can be subsite enabled by adding a subsite field.
  • Should "just work" with modules like Subdomain.

Currently includes plugins for:

  • Theme override - select from any enabled theme.
  • Branding override - override site name, logo, favicon etc.
  • Book module integration - use books to maintain a hierarchy of sub-site pages and override the main menu navigation.
  • Social media links module integration - override social links for each subsite.

Installation

  1. Add a subsite field to any content type.
  2. On the content type "Manage form display" and "Manage display" tabs set the subsite field to hidden.
  3. There may be hard dependencies on the book and social_media_links modules, so download (not book - that's in core) and enable if necessary. TODO!

Use

To create a subsite

Create or edit a node of the subsite type(s) and try out the "Subsite" node settings in the node settings panel.

To create a multi-page subsite

  1. Make sure the book module is enabled with book support configured for the subsite enabled content type(s) (Content types allowed in book outlines).
  2. The subsite "homepage" node needs to be the top-level page in a book - so if it's not already select the "Create a new book" option in the "Book outline" vertical tab on the node edit page.
  3. Add sub pages as child pages to the subsite book. The child pages can be of any content type.

Status

Although currently being used on a live site (http://www.hfsc.org.uk v http://www.hfsc.org.uk/solent-forts-race), there is still some work to do before it is ready for general use. Written whilst going through the "first Drupal 8 site" experience there's considerable room for improvement and a fair bit of refactoring to do. Suggestions welcome - code, architecture, features, whatever.

Project information

Releases