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.

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.

  • 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. – kiamlaluno Apr 27 '15 at 5:55

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.