Drupal is a registered trademark of Dries Buytaert
cms 2.1.3 Update released for Drupal core (2.1.3)! drupal 10.5.11 Update released for Drupal core (10.5.11)! drupal 11.3.11 Update released for Drupal core (11.3.11)! drupal 11.2.13 Update released for Drupal core (11.2.13)! drupal 10.6.10 Update released for Drupal core (10.6.10)! cms 2.1.2 Update released for Drupal core (2.1.2)! drupal 11.1.10 Update released for Drupal core (11.1.10)! drupal 10.5.10 Update released for Drupal core (10.5.10)! drupal 10.4.10 Update released for Drupal core (10.4.10)! drupal 11.2.12 Update released for Drupal core (11.2.12)! drupal 11.3.10 Update released for Drupal core (11.3.10)! drupal 10.6.9 Update released for Drupal core (10.6.9)! drupal 10.6.8 Update released for Drupal core (10.6.8)! drupal 11.3.9 Update released for Drupal core (11.3.9)! drupal 11.3.8 Update released for Drupal core (11.3.8)! drupal 11.3.7 Update released for Drupal core (11.3.7)! drupal 11.2.11 Update released for Drupal core (11.2.11)! drupal 10.6.7 Update released for Drupal core (10.6.7)! drupal 10.5.9 Update released for Drupal core (10.5.9)! cms 2.1.1 Update released for Drupal core (2.1.1)!

template_suggester

21 sites No security coverage
View on drupal.org

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
3 months ago
Release cadence
0 days
Stability
50% stable

Releases

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