Drupal is a registered trademark of Dries Buytaert
Release: Leaflet 10.4.11 Minor update available for module leaflet (10.4.11). Release: Session Inspector 1.0.8 Minor update available for module session_inspector (1.0.8). Release: Migrate QA 2.0.4 Minor update available for module migrate_qa (2.0.4). Release: CKEditor Description List 3.0.0 Major update available for module ckeditor_descriptionlist (3.0.0). Release: FlowDrop 2.4.0 Minor update available for module flowdrop (2.4.0). Release: JWT Token Refresh 1.0.4 Minor update available for module jwt_token_refresh (1.0.4). Release: ConReg 1.0.0-beta1 First beta version released for module conreg (1.0.0-beta1). Release: AI Image Studio 1.0.0-beta8 New beta version released for module ai_image_studio (1.0.0-beta8). Usage Milestone: Role Theme Switcher Module role_theme_switcher crossed 1,000 active installs. Module Revived: Decoupled Router 2.0.7 Module decoupled_router updated after 11 months of inactivity (2.0.7).

This module provides example content for demonstrating LocalGov Microsites. It creates three demo microsites with user accounts, content, and sets up domain records suitable for local development environments.

LocalGov Microsites Demo Content

Example content for demonstrating LocalGov Microsites and helping local development.

Hostnames are set to DDEV domains by default

When this module is installed, it creates or updates domain records for the three demo microsites with these hostnames:

  • localgov-micro-1.ddev.site
  • localgov-micro-2.ddev.site
  • localgov-micro-3.ddev.site

Notes:

  • If your local environment uses different hostnames, update each domain record after install.

What this module does

  • Creates 3 Microsites
    • Scarfolk Independent Living
    • Scarfolk People's Park
    • Scarfolk Digital Blog
  • Creates 6 users
    • living-controller
    • living-editor
    • park-controller
    • park-editor
    • blog-controller
    • blog-editor
  • Provides demo content via the default_content module.
  • Includes groups, users, relationships, nodes, taxonomy terms, files, and media entities.
  • Optional: on module install, creates or updates per-group domain settings for demo microsites (hostname, site name, slogan, and front page). Defaults are provided.

Updating exported default content

From the Drupal web root, export content already listed in localgov_microsites_demo.info.yml:

drush dcem localgov_microsites_demo

Adding new demo content

  1. Add the new entity UUID(s) to localgov_microsites_demo.info.yml.
  2. Export the entity and its references:
drush dcer  --folder=modules/contrib/localgov_microsites_demo/content/

Notes:

  1. --folder is relative to the Drupal web root.
  2. Do not prefix --folder with /.
  3. Keep UUID lists in localgov_microsites_demo.info.yml in sync with the exported files.

Running tests

From the Drupal web root, run the kernel test class for this module:

php ./core/scripts/run-tests.sh --php /usr/bin/php --module localgov_microsites_demo --class "Drupal\\Tests\\localgov_microsites_demo\\Kernel\\DemoInstallKernelTest"

Reference

Activity

Tracked releases
8
Tracked since
Jul 2026
Latest release
1 month ago
Releases (12 mo)
8 ▲ from 0
Maintenance
Active

Release Timeline

Releases

Version Type Release date
1.1.0-rc1 Pre-release Jul 14, 2026
1.1.0-beta1 Pre-release Jul 14, 2026
1.0.0-beta2 Pre-release Jul 14, 2026
1.0.0-beta1 Pre-release Jul 13, 2026
1.0.1-alpha3 Pre-release Jul 9, 2026
1.0.0-alpha2 Pre-release Jul 7, 2026
1.0.0-alpha1 Pre-release Jul 7, 2026
1.x-dev Dev Jul 3, 2026