Subtheme template structure?

Created on 18 August 2023, 10 months ago
Updated 21 September 2023, 9 months ago

Recently, I was able to successfully install the Barrio subtheme, and I'm now exploring the creation of custom content type templates.

I do have twig debug working, I find Drupal theming to be quite complex, particularly as I try to understand the template structure for ^10.0.1.

Specifically, I'm struggling with (what seems to be) in Chrome console twig suggestions - the dominance of html.html.twig, which seems to override the node article content type. My experience with Drupal has been primarily with versions up to 7, and this new paradigm is causing me some confusion.

Could you possibly direct me to the right documentation or offer insight into the correct usage of schema template files? I'm uncertain about the correct paths, such as:

templates/node
templates/content
templates/nodes
node--type-article.twig

Anyone with experience with template structure that could easily articulate the correct template structure to make this work?

💬 Support request
Status

Active

Version

5.5

Component

Documentation

Created by

🇺🇸United States joedevdrupal

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024