Drupal is a registered trademark of Dries Buytaert
drupal 11.3.7 Update released for Drupal core (11.3.7)! drupal 11.2.11 Update released for Drupal core (11.2.11)! drupal 10.6.7 Update released for Drupal core (10.6.7)! drupal 10.5.9 Update released for Drupal core (10.5.9)! cms 2.1.1 Update released for Drupal core (2.1.1)! drupal 11.3.6 Update released for Drupal core (11.3.6)! drupal 10.6.6 Update released for Drupal core (10.6.6)! cms 2.1.0 Update released for Drupal core (2.1.0)! bootstrap 8.x-3.40 Minor update available for theme bootstrap (8.x-3.40). menu_link_attributes 8.x-1.7 Minor update available for module menu_link_attributes (8.x-1.7). eca 3.1.1 Minor update available for module eca (3.1.1). layout_paragraphs 2.1.3 Minor update available for module layout_paragraphs (2.1.3). ai 1.3.3 Minor update available for module ai (1.3.3). ai 1.2.14 Minor update available for module ai (1.2.14). node_revision_delete 2.0.3 Minor update available for module node_revision_delete (2.0.3). moderated_content_bulk_publish 2.0.52 Minor update available for module moderated_content_bulk_publish (2.0.52). klaro 3.0.10 Minor update available for module klaro (3.0.10). klaro 3.0.9 Minor update available for module klaro (3.0.9). layout_paragraphs 2.1.2 Minor update available for module layout_paragraphs (2.1.2). geofield_map 11.1.8 Minor update available for module geofield_map (11.1.8).

static_page

190 sites No security coverage
View on drupal.org

I want to add several static pages to drupal. To be specific, for example,

<html>
  <head>....</head>
  <body>
    Hi there
    <a href="/node/add/this">Link</a>
  </body>
</html>

No sidebars. No Drupal anything. Just a nice page with some words.

Front module provides an option "Allows for static content to be displayed to the screen as is. This method does not pass through Drupal's theming system.", but it only works on the front page.

I could not find a module, So I decide write this small module to do it.

Installation

  1. Install static_page module.
  2. You should add a dedicated content type, for example “Static page”, to use for static content. Make sure that your content type has a text area field. This module can use any (single) text area field to store the whole source code of the HTML page.
  3. Navigate to “/admin/config/content/static_page” to configure which content types will be used as static pages. For each content type, you select which text area holds the static page content.
  4. Navigate to the “/node/add” page, choose any content type(s) that are configured to be static pages, for example “node/add/static_page”. Here you enter a title (only used for the administrative interface), then put the whole source code of a HTML page into the text area. Save it.

You will get a page exactly the same with your source code. This module lets you bypass Drupal’s theme layer.

If you want to add CSS or JS to the pages, you'll have to put that directly into the <head> section of the static page content.

Security warning

Any content type configured as a static page will bypass Drupal's regular text filtering system. Users with permission to create static_page-enabled content types can effectively bypass any XSS protections. You should only grant permission to create static pages to trusted users.

Activity

Total releases
1
First release
Dec 2025
Latest release
4 months ago
Release cadence
Stability
0% stable

Releases

Version Type Release date
8.x-1.0-rc1 Pre-release Dec 15, 2025