I wonder about the "%". What does that mean?

<!-- THEME DEBUG -->
<!-- THEME HOOK: 'page' -->
  * page--node--31.html.twig
  * page--node--%.html.twig
  * page--node.html.twig
  x page.html.twig

And what names are possible? I need a page for a specific and custom block for viewing the whole content. I need something like this, but do not know how to do it right.

  • I don't understand completely; how do you want to use page template for displaying a custom block? Can you clarify that part? Mar 15, 2016 at 16:01
  • I had a block at sidebar. And in this sidebar are some articles. But only the teaser is visible. If you click the READ MORE-button a seperate page with whole content of article open. And for this page I want to make a seperate look. Therefore I need another page.twig
    – lesley n.
    Mar 15, 2016 at 17:13
  • That means that you want separate page for nodes of certain content type; is that correct? Mar 15, 2016 at 17:40
  • yes, that is right
    – lesley n.
    Mar 15, 2016 at 22:34
  • Hmm, is there really nobody outside knowing well the naming conventions for templates in Drupal? How to name this separate page and what does the "%" mean?
    – lesley n.
    Mar 19, 2016 at 8:35

1 Answer 1


This would be a universal template for page level views of any content type. So if you wanted to have the same template for different content types you could use this convention. If you need different templates for each content type you could apply:

page--node--[content type machine name].html.twig

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.