Convert pages to static HTML files via CLI or the admin interface.
Modules that work with importing or exporting data.
Non-stable. Not yet intended for use in production environments. *
|Date Added||January 17, 2020|
|Last Updated||January 18, 2020|
This module's files should be placed in /site/modules/StaticWire/
How to install or uninstall modules
Module for ProcessWire that coverts pages to static HTML files via CLI or the admin interface. Useful in CI/CD scripts or to use ProcessWire as a simple static site generator.
Install via the ProcessWire modules directory. See Instructions.
The module has a configuration option ("Static file path") for the directory in which the static HTML files and folders are generated. The path is relative to the root directory of your installation. (default:
Navigate to the root folder of your website:
Run the script
After installing, go to Setup > Static Site Generator and click the "Generate" button.
Users need the
staticwire-generate permission in order to run StaticWire.
The module creates a folder structure mirroring the page tree of your website.
In each folder a
index.html file with the corresponding page content is generated.
To generate the static HTML structure the
$page->render() function is called on each page.
To handle assets and uploads you have multiple options:
- copy the folders (
site/templates/scripts, etc.) per hand
- copy them in your CI/CD script
- Symlink them if the static site and your ProcessWire installation are running on the same webserver
- [ ] Supprt paginated templates
- [ ] Download static site as *.zip archive
- Admin Helpers
- Core Modules
- Development Tools
- Field Types
- Input Fields
- Language Modules
- Language Packs
- Markup Generation
- Premium Modules
- Process Modules
- Proof of Concept
- Site Profiles
- Social, Feeds, Services
- Text Formatters
- Other Modules
- Users and Access
*Use modules at your own risk. There are no guarantees or warranties. It is recommended that you backup your site and database before installing new modules.