Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: Views Bootstrap 5.5.4 — Minor update available for module views_bootstrap (5.5.4). Release: Rightup theme 1.0.3 — Minor update available for theme vartheme_bs5_rightup (1.0.3). Release: CommentOn 1.0.6 — Minor update available for module commenton (1.0.6). Release: ChatGPT Ads 1.0.3 — Minor update available for module chatgpt_ads (1.0.3). Release: Opensolr Search 5.1.3 — Minor update available for module opensolr_search (5.1.3). Release: ServiceM8 Webform Integration 1.2.1 — Minor update available for module servicem8_webform (1.2.1). Release: PostfixAdmin 1.0.0 — Initial release available for module postfix_admin (1.0.0)! Release: ip_analyser 1.0.3 — Minor update available for module ip_analyser (1.0.3). Module Revived: Swagger-PHP OpenAPI 3 documentation generator 1.0.0 — Module swagger_php updated after 10 months of inactivity (1.0.0). Security Coverage: Microsoft Azure AI — Module ai_provider_azure now has official Drupal security advisory coverage.

It may not ever really be a great idea, but sometimes you just need to host some static HTML content. For instance, you may have inherited a single-page app that works perfectly and all you want to do is put a branding wrapper around it. Or you might have something like an Adobe Captivate HTML5 export that you want to embed in your site.

SCI lets you define static sites as entities and then reference and render those entities as iframes. You upload a complete site as a zip file and SCI finds an index.html file within the archive as the source for the iframe. The static sites themselves are stored as a hash-named directory in sites/default/files/static, but with SCI you can pretend that URL doesn't exist and just deal with the iframes.

## To get started:

1. enable the module
2. package up your static content as a zip file. The file serving as the entrypoint to that content should be named index.html
3. define a new static_content entity at /admin/structure/static_content and upload your archive
4. in your content, add an entity reference field of type "Static content" and set to display as a rendered entity

## Helpful tips:

- create a custom template for your static content with static-content--NAME.html.twig
- if you don't know the height of your content ahead of time (and there's only one page), try the "Autoheight" setting which attempt to correct the height after the iframe content loads.

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
2
Tracked since
Oct 2023
Latest release
2 years ago
Releases (12 mo)
0
Maintenance
Dormant

Releases

Version Type Core Release date
2.0.0 Stable Oct 30, 2023
2.0.x-dev Dev Oct 30, 2023