Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Template Generator

Security covered Under active development 31 sites

This module automatically generates Twig templates for your content entities, allowing you to select which entities to generate and how they are sorted. It can also ignore specific view modes or bundles, and automatically add available variables to the template header. Templates can be generated after display setting changes and are exported to your theme's templates directory by default.

This module allows you to automatically generate your templates for your content entities.

- Ability to select the entities to generate
- Possibility to automatically sort the templates by view mode or by bundle
- Ability to ignore certain view modes or bundles
- Automatic addition of the variables available in the header comment.
- The possibility of automatically generating the templates after each change of display settings

By default the files will be exported: your-current-theme/templates
It is possible to change themes in the configurations.

Sponsors

The Template Generator module was sponsored by GAYA.

Drupal 9–11

Ask your assistant about Template Generator

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

Tracked releases
3
Tracked since
Jul 2023
Latest release
1 year ago
Releases (12 mo)
0 ▼ from 1
Maintenance
Slowing

Release Timeline

Releases

Version Type Core PHP Release date
2.0.3 Stable 9–11 Feb 10, 2025
2.0.2 Stable 9–11 Sep 25, 2024
2.0.1 Stable 9–10 Jul 17, 2023