The Template Block module allows site builders to easily add custom Twig templates as blocks on their website. This provides a flexible way to display unique content structures without writing custom module code.
Template Block provides a simple way for site builders to place Twig templates as blocks.
Post-Installation
- Place a Template Block block somewhere on your site, e.g. via Block Layout, Layout Builder, etc.
- Create the appropriate template in your site's theme. Your template's name will be something like
template-block--MY-TEMPLATE.html.twig. (You choose the value ofMY-TEMPLATEin step 1.) - Clear your site's cache and profit. ๐
Recommended modules/libraries
Install Twig Tweak to take your Template Block blocks to the next level.
Ask your assistant about Template Block
Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works
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
Releases
| Version | Type | Core | PHP | Release date | |
|---|---|---|---|---|---|
| 1.0.0-beta1 | Pre-release | 10โ11 | PHP >=8 | Sep 21, 2024 | |
| 1.0.x-dev | Dev | 10โ11 | PHP >=8.1 | Sep 21, 2024 |