Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: Configuration Language Lock 1.0.2 Minor update available for module config_language_lock (1.0.2). Release: Canvas Override 1.0.1 Minor update available for module canvas_override (1.0.1). Release: Media Remote Image 8.x-1.2 Minor update available for module media_entity_remote_image (8.x-1.2). Release: IDNA Convert Service (punycode) 2.0.4 Minor update available for module idna (2.0.4). Release: Bootstrap Cloud 7.1.3 Minor update available for theme bootstrap_cloud (7.1.3). Release: Token Browser 1.0.2 Minor update available for module token_browser (1.0.2). Release: Varbase Project 11.0.8 Minor update available for module varbase_project (11.0.8). Release: Media Remote Image 2.0.0-beta1 First beta version released for module media_entity_remote_image (2.0.0-beta1). Usage Milestone: Term CSV Export Import Module term_csv_export_import crossed 1,000 active installs. Security Coverage: Module Scout Module module_scout now has official Drupal security advisory coverage.

Template Suggester

35 sites No security coverage Drupal 8–11
View on drupal.org

This module allows you to extend Drupal's default entity template suggestions with custom ones. It introduces a field type that lets you select these custom suggestions, enabling you to display content structures in various ways.

This module provides a new functionality that let you be able to extends the core entity templates suggestions with other totally cutomized.

The module provides a field type named template_suggester where you can select the new customized suggestion.

It gives you the ability to display one structure display in multiple ways.

REQUIREMENTS

The core field module.

INSTALLATION

Install as you would normally install a contributed Drupal module.

CONFIGURATION

  1. Create template_suggester.yml in your active theme folder and add your template suggestions.
  2. Add Template Suggester field in to your entity.
  3. Add a content and select suggestion as you wish.
  4. Once you have a different template for your content you have no limits to customize it.

Template suggestion Logic

  • ENTITY__SELECTED_SUGGESTER
  • ENTITY__CURRENT_BUNDLE__SELECTED_SUGGESTER
  • ENTITY__SELECTED_SUGGESTER__VIEW_MODE
  • ENTITY__CURRENT_BUNDLE__SELECTED_SUGGESTER__VIEW_MODE

Example yml configuration

node: (ENTITY)
  style_1: (SELECTED_SUGGESTER)
  name: Visible name
  bundles:
    - article (CURRENT_BUNDLE)

Suggestion Output

node--style-1.html.twig
node--article--style-1.html.twig
node--style-1--full.html.twig
node--article--style-1--full.html.twig

Tested and works fine with follow entities.

  1. node
  2. taxonomy_term
  3. paragraph

Depends on

Dependencies of the latest stable release

  • field Drupal core

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
2
Tracked since
Mar 2026
Latest release
5 months ago
Releases (12 mo)
2 ▲ from 0
Maintenance
Slowing

Releases

Version Type Core Release date
2.0.1 Stable 8–11 Mar 13, 2026
2.x-dev Dev 8–11 Mar 13, 2026