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

Static Landing Pages (SLP) lets site administrators create static HTML landing pages in Drupal and publish them at custom site paths (for example '/campaign-2026') while delivering the uploaded HTML as-is (no Drupal theme wrapper).

This module is designed for campaign-style pages that should be managed in the Drupal backend but rendered as plain static HTML.

Features

  • Create multiple landing pages in the backend (admin content UI).
  • Assign a custom path per landing page (e.g. '/campaign-xyz').
  • Upload a single '.html' file that is served 1:1.
  • Published/unpublished support.
  • Dynamic route building (paths become active immediately after save).

Installation

  1. Place the module in 'modules/custom/slp' (or install via Composer once published).
  2. Enable the module at '/admin/modules'.
  3. Grant permissions: 'Administer static landing pages' ('administer slp landingpages')

Usage

  1. Go to Content → Static landing pages ('/admin/content/slp-landingpage').
  2. Click Add static landing page.
  3. Set:
  4. - Title
  5. - Published
  6. - Path (must start with '/', no spaces, no '?' or '#')
  7. - HTML file ('.html' / '.htm')
  8. Save and visit the configured path (e.g. '/campaign-2026').

Security notes

SLP delivers the uploaded HTML without sanitizing. Only trusted administrators should be allowed to upload HTML.

Project & maintenance

Supporting organizations: 
Sponsor

Project information

Releases