DrupalCon Vienna 2017: Twig recipes - Making Drupal 8 render the markup you want

49:20 · 26 Sep 2017 – 29 Sep 2017 · YouTube

About this talk

This talk focuses on the transformative impact of Twig on theming in Drupal 8, highlighting the necessity for a new approach to achieve desired markup. Aimed at site builders and themers, the session introduces basic theming concepts, ensuring that no prior knowledge of Twig is required. The speaker explains the responsibilities of a theme in generating a Drupal page, covering topics such as templates, template nesting, and theme debugging for markup modification. Attendees will learn about Twig's syntax, filters, functions, and tests through practical examples, along with techniques for passing information from Drupal to Twig, conditionally displaying fields, using image fields as background images, and rendering node content as HTML attributes. By the end, participants will gain a clear understanding of Twig in Drupal 8 and the necessary considerations for creating custom markup.

From event

DrupalCon Vienna - Sept 2017

26 Sep 2017 – 29 Sep 2017

All event videos
Back to Watch