Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: OpenID Connect / OAuth client 3.0.0-alpha9 New alpha version released for module openid_connect (3.0.0-alpha9). Release: Opensolr Search 4.5.0 Minor update available for module opensolr_search (4.5.0). Release: Timelinr 1.0.1 Minor update available for module timelinr (1.0.1). Usage Milestone: Simplify Module simplify crossed 10,000 active installs. Usage Milestone: Views Reference Filter Module entityreference_filter crossed 10,000 active installs. Usage Milestone: Dropdown Language Module dropdown_language crossed 10,000 active installs. Usage Milestone: Paragraphs Browser Module paragraphs_browser crossed 10,000 active installs. Usage Milestone: OpenAPI Module openapi crossed 10,000 active installs. Usage Milestone: Decoupled Router Module decoupled_router crossed 10,000 active installs. Module Revived: Entityqueue Buttons 1.1.2 Module entityqueue_buttons updated after 8 months of inactivity (1.1.2).

This module generates static HTML versions of individual Drupal nodes to improve website performance and reduce server load. It allows for manual or bulk generation, automatic redirects for anonymous users, and manages included assets and permissions.

The Static Node Generator module improves performance by generating and serving static HTML versions of Drupal nodes. It reduces server load and significantly speeds up page load times for users. Ideal for content-heavy websites, it supports manual and bulk static file generation, automatic redirects, asset management, and granular permission control.

Features

  • Static HTML Generation: Generate static HTML versions of individual nodes and the homepage.
  • Automatic Redirect: Anonymous users are redirected to static pages when available.
  • Node Form Integration: Add a "Generate Static Page" button on the node edit form.
  • Bulk Actions: Generate or delete static content for multiple nodes from the content listing.
  • Asset Management: Automatically includes CSS, JavaScript, images, and other assets.
  • File List Page: Admin interface at /admin/content/static-files to manage generated static files.
  • Permission Control: Fine-grained permissions for generating and deleting static pages.
  • Cache Automation: Automatically clears relevant caches when static pages are created or deleted.
  • Configurable Static Folder: Choose the destination folder for static files (default: public://static).
  • Node Type Control: Enable static generation only for selected node types.

Post-Installation

  1. Enable the module via drush en static_node -y or through the UI.
  2. Configure permissions at /admin/people/permissions:
    • generate static node
    • delete static node
  3. Visit /admin/config/system/static-node to:
    • Select which node types support static generation
    • Set the static files folder path
  4. Manage generated files via /admin/content/static-files

Additional Requirements

  • Drupal 10 or 11
  • PHP 8.0 or higher (recommended)
  • Core modules: node, file

No third-party libraries are required. However, using Drush can streamline bulk generation via the command line.

Similar projects

Note: Unlike Tome, this module is not designed to statically export an entire Drupal site. Instead, it focuses on generating static versions of individual pages (nodes) on demand. This makes it perfect for use cases such as launching a campaign landing page expected to receive a sudden spike in traffic, allowing only selected content to be served as static for maximum performance and control—without compromising the rest of the site's dynamic capabilities.

Unlike full-site static generators, Static HTML Node focuses on individual nodes and integrates directly with the Drupal admin UI. It’s ideal for sites that need hybrid dynamic/static content delivery.

Supporting this Module

Maintained by Alberto Cocchiara (bigbabert). Contributions, feedback, and support are welcome via the Drupal project page.

Community Documentation

For usage examples and troubleshooting tips, see the README file and future community resources. Video walkthroughs and demos will be linked here when available.

Static Node Generator for Drupal 11 is built with Gen AI support from GitHub Copilot, using Agent mode with Claude 3.7 Sonnet.

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
12
Tracked since
Apr 2025
Latest release
1 year ago
Releases (12 mo)
0 ▼ from 12
Maintenance
Dormant

Release Timeline

Releases

Version Type Core Release date
1.0.0-beta11 Pre-release 10–11 May 3, 2025
1.0.0-beta10 Pre-release 10–11 May 2, 2025
1.0.0-beta9 Pre-release 10–11 May 1, 2025
1.0.0-beta8 Pre-release 10–11 Apr 28, 2025
1.0.0-beta7 Pre-release 10–11 Apr 28, 2025
1.0.0-beta6 Pre-release 10–11 Apr 28, 2025
1.0.0-beta5 Pre-release 10–11 Apr 28, 2025
1.0.0-beta4 Pre-release 10–11 Apr 28, 2025
1.0.0-beta3 Pre-release 10–11 Apr 27, 2025
1.0.0-beta2 Pre-release 10–11 Apr 24, 2025
1.0.0-beta1 Pre-release 10–11 Apr 23, 2025
1.x-dev Dev 10–11 Apr 23, 2025