Drupal8 Theming - No more divitis

mortendk

Drupal 8 has many new exciting features, but none are as radical or as needed as the changes made to the theme system*!

For 10 years Drupal's front end was design and built by developers that tried their very best to figure out what the front end needed; the lack of dedicated front-enders in core; resulted in front end architecture that was "less than ideal" for the challenges that the front end has faced for the last 5 years.

Drupal 8 and twig changed it all!

A complete overhaul of the theme system started 3 years ago - PHPtemplate is now out the door, the twig template system is implemented, and most importantly, the core idea of how the front end is build has done a 180° from how Drupal 7 handled theming.

This means:

  • No more divitis!
  • No more Class soup
  • No more of Drupal's standard markup and classes
  • No more yelling at the markup and not knowing where stuff came from
  • No more using regex for modify a CSS class!

Such a dramatic change would normally cause panic is a time for celebration.

The session will give you a solid understanding of the key concepts of Drupal 8 theming, as a themer, as well as giving insight to why the drupal8 theming is changed so radical.

The session will cover:

  • "Best practice" of Drupal8 theming.
  • The structure of a Drupal 8 theme's
  • Classy and Stable, what happend with basethemes
  • How {{ twig }} works from a CSS/HTML coders perspective (how to build a theme)
  • A detailed look into fields, loops & how to completely control the markup

* Yes I know that a lot of “big things came into d8” that weren't front end related ;)
** This is the "next version" of the session I gave at DrupalCon Los Angeles & Barcelona, it builds on feedback from attendees & the changes that have happend since beta to RC1 to 8.0

Session Track

Frontend

Experience Level

Intermediate

Drupal Version

When & Where

Time: 
Friday, 19 February, 2016 - 12:45 to 13:45
Room: 
Auditorium | Acquia