Theming

Exercise: Override the Node Template for Drupal 8, 9, and 10

The available dynamic tokens or variables vary from template to template. Each page is built from a set of templates.

In this exercise, we'll:

  • Override and name the node template file so that it will only affect Article nodes on our Drupal site.
  • Inspect the available variables.
  • Customize the markup.
  • Use the Twig filter without.

We recommend that you try to work through the exercise yourself, and refer to the video if you need help.