0

How do i create theme that has different regions for every node?

For example i want my frontpage to have different regions than some other page that represents content.

1

1 Answer 1

2

You don't want different regions for every node.

Regions should be as generic and re-usable as possible.

However you don't have to include all regions in all templates.

Your page--front.html.twigcould have a different set of regions to page.html.twig

Maybe checkout the Drupal 8 theming guide.

1
  • 2
    Yes, it is a little unpractical to have different regions for every node; different regions for different content types is more probable, even though the solution is just not to include all the regions in the template file.
    – avpaderno
    Commented Apr 27, 2015 at 5:55

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.