Minisite
Drupal module that allows to upload and serve 'minisite' files.
About
Allows to upload and archive with a 'minisite' files and serve it from a Drupal website, while maintaining the minisite's look and feel.
The pages can be served from the location in the public or private files directory or from an alias set on the parent entity (where the field is attached to).
Please note that this module does not actually import the minisite pages as Drupal nodes.
A minisite is a website by which companies offer information about one specific product or product group. Typically, a minisite is enhanced by various multimedia content, such as an animated, narrated introduction, and accompanied by a visual scheme which complements the product well. - Minisite - Wikipedia Features
Supported archives
ZIP, TAR
Archive structure
- Must have a single root directory.
- Must have index.html file inside of the root directory.
- Must have files only with allowed extensions (configured per-field).
- May have documents with absolute or relative path in links, scripts etc.
A shell script fix-archives.sh
is provided to automatically check and cleanup
multiple zip archives.
- Create a directory, say
data
, and place all your zip files there. - Run
./fix-archives.sh data data_fixed
. - Fixed ZIPs will be saved to
data_fixed
directory.
Any directories that does not follow the archive structure will trigger an error and stop processing. You would need to resolve any issues with those archives manually and re-try the script again.
Attention
Only allow trusted user upload minisite archive file. Also, use antivirus software to detect malicious software, including viruses. Check out ClamAV module which will verify that files uploaded to a site are not infected with a virus, and prevent infected files from being saved. It will also prevent uploading a ZIP-bomb also known as a "ZIP of death or decompression bomb".
User Reports
Please post to the issue queue to help make the module better. Feel free to provide patches and suggestions too.