Drupal 8/9: Theme negotiation based on condition plugins
Rules are collections of condition plugins

Drupal 8/9: Theme negotiation based on condition plugins

Sooner, the European Commission Drupal project I'm working on, will transition to a new theme. During the transition, some pages will be still displayed using the the old theme. I've looked around for a Drupal module that knows to render a certain page using a specific theme and found Switch Page Theme. The big impediment with this module is that it mainly checks the page path. And this is more or less hardcoded. There's no way to add arbitrary conditions, such as a route condition, which is the one I'm more interesting in.

As proposing a change to the existing module would have been a too disruptive and hard to address in terms of backwards compatibility issues, I've built the Theme Negotiation by Rules module, which has... [read more]

Read the original article...

要查看或添加评论,请登录

Claudiu Cristea的更多文章

  • Where Block Drupal module beats Layout Builder

    Where Block Drupal module beats Layout Builder

    Drupal core ships Block and Layout Builder modules. Block module is in business of placing blocks.

  • Effective form spam protection with Form Protect

    Effective form spam protection with Form Protect

    Form Protect is my first Drupal 8 module, even it's a tiny one. First I needed the module for a Drupal 7 client project.

  • Welcome Drupal 8!

    Welcome Drupal 8!

    First Drupal 8, the Release Candidate 1, is out after a fantastic work of more than 3,200 core contributors. Although…

  • Drupal 8 is now part of our Training Curricula

    Drupal 8 is now part of our Training Curricula

    Original post: webikon.com/drupal-8-is-now-part-of-our-training-curricula As the date for Drupal 8 stable release is…

  • Park your old Drupal site

    Park your old Drupal site

    Original post: https://webikon.com/cases/park-your-old-drupal-site.

  • Behat and Drupal Extension at first touch

    Behat and Drupal Extension at first touch

    Original post: webikon.com/cases/behat-and-drupal-extension-at-first-touch I was really impressed, back in 2013, by…

社区洞察

其他会员也浏览了