0

Here's the issue:

I have a custom content type for the contact page. Twig template: page--node--9.html.twig. When I add blocks to this template, e.g. {{ page.contact-first }}, it breaks. How can I display blocks on it?

1 Answer 1

0

The solution was simple: the naming of the regions need to use underscores, not dashes.

In theme.info.yml

regions:
  contact_first: 'Contact (First column)'

In the twig template:

{{ page.contact_first }}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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