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). Usage Milestone: Google Analytics Module google_analytics crossed 1,000 active installs. Release: Timelinr 1.0.1 Minor update available for module timelinr (1.0.1). Release: GraphQL Compose Codegen 1.1.2 Minor update available for module graphql_compose_codegen (1.1.2). Release: Mapy.com 1.1.3 Minor update available for module mapycom (1.1.3). Release: Ckeditor5 entity browser 3.0.3 Minor update available for module ckeditor5_entity_browser (3.0.3). Release: Ckeditor5 entity browser 3.0.1 Minor update available for module ckeditor5_entity_browser (3.0.1). Release: Ckeditor5 entity browser 3.0.2 Minor update available for module ckeditor5_entity_browser (3.0.2). Release: Teamleader Integration 4.0.2 Minor update available for module teamleader (4.0.2). Module Revived: Entityqueue Buttons 1.1.2 Module entityqueue_buttons updated after 8 months of inactivity (1.1.2).

Static Page

188 sites No security coverage
View on drupal.org

This module allows you to create static HTML pages within Drupal that bypass the theme layer. You can configure specific content types to store the raw HTML for these pages, which are then displayed exactly as entered. Be cautious about granting permissions to create static pages, as they bypass Drupal's normal text filtering and XSS protections.

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

<html>
  <head>....</head>
  <body>
    Hi there
    <a href="https://www.drupal.org/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.

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
1
Tracked since
Dec 2025
Latest release
8 months ago
Releases (12 mo)
1 ▲ from 0
Maintenance
Slowing

Releases

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