Drupal is a registered trademark of Dries Buytaert
Search API Solr 4.4.0 Minor update available for module search_api_solr (4.4.0). Page Manager 8.x-4.0 Major update available for module page_manager (8.x-4.0). Trash 3.1.0-beta2 New beta version released for module trash (3.1.0-beta2). Commerce AutoSKU 3.0.1 Minor update available for module commerce_autosku (3.0.1). Custom Field 4.0.10 Minor update available for module custom_field (4.0.10). Alternative login ID & display names 2.0.12 Minor update available for module alt_login (2.0.12). EntityReference UUID 3.0.1 Minor update available for module entity_reference_uuid (3.0.1). LocalGov Publications Importer 1.1.1 Minor update available for module localgov_publications_importer (1.1.1). Configuration Override Warn 8.x-1.6 Module config_override_warn updated after 10 months of inactivity (8.x-1.6). Table Alternate Rows Module table_altrow crossed 1,000 active installs.

Template Suggester

41 sites No security coverage
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

Activity

Total releases
2
First release
Mar 2026
Latest release
4 months ago
Releases (12 mo)
2 ▲ from 0
Maintenance
Active

Releases

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