Ever wanted to serve a static HTML page from Drupal? A quick-and-dirty was of doing this is as follows:
- Create a new subtheme from Zen or your favorite base theme, or roll your own. Maybe call it “Blank Theme.”
- Trim down your theme’s html.tpl.php file to look like this:
<?php print $page; ?>
- Trim down your theme’s page.tpl.php file to look like this:
<?php print render($page['content']); ?>
- Create a content type called “Static HTML” and paste the entire HTML doc in the body field of nodes of this content type. Ensure that the text filter for either defaults to “Full HTML” sitewide, or for this content type by using http://drupal.org/project/better_formats .
- Use http://drupal.org/project/themekey to create a rule that switches the theme to “Blank Theme” for this content/node type.
- [OPTIONAL]: Create a new content type called “File Attachment” and use https://drupal.org/project/attachment_links to manage any image or other assets in your static HTML through the Drupal UI. Use the links that this module provides to create a permalink to these files, thus avoiding Drupal’s default behavior or renaming new files uploaded to a given field. Otherwise, just reference your assets via <img src=”/hardcoded/path/to/theme/image01.png”/> and such.