Building EU-branded Drupal sites with ECL and OpenEuropa theme

Session Room
Room 1 (Amphitheater Pantheon)
Time Slot
Duration
40 min
Speaker(s)
Session track
Coding & Site Building
Experience level
Intermediate

Learn how to create branded EU institutional websites using the Europa Component Library (ECL) and OpenEuropa theme. Inspired by real implementations, this session shows how to build subthemes, integrate ECL Twig components, and create custom solutions that build on ECL.

Prerequisite
  • Solid understanding of Drupal theming (Twig templates, preprocess hooks etc.)
  • Familiarity with npm/node.js basics
  • Basic knowledge of SCSS/CSS
  • Understanding of Drupal's library system
Outline

This session explores the Europa Component Library (ECL) and its Drupal integration through the OpenEuropa theme, drawing inspiration from production EU institutional sites. We'll cover the architecture of both systems, demonstrate how to build subthemes that leverage ECL components, and discuss practical patterns learned from production EU sites.
 

  • ECL architecture: packages, presets, themes, and the ecl-twig-loader
  • oe_theme's dual branding system (EC/EU) and template inheritance patterns
  • Creating a subtheme: info.yml regions, npm setup, ecl-builder configuration
  • Using ECL components correctly: the critical only keyword, ecl_icon_path
  • Value objects for data transformation (ImageValueObject, DateValueObject, FileValueObject among others)

References:

Learning Objectives
  • Understand how the Europa Component Library (ECL) fits within the OpenEuropa theming stack, and how it relates to oe_theme.
  • Learn how to structure maintainable oe_theme subthemes with correct inheritance and clean separation of concerns.
  • Choose the right implementation approach for ECL-driven theming when to rely on templates, when to use preprocess hooks, and when to introduce theme content modules while keeping templates clean and reusable.
  • Map and transform Drupal content (fields and render arrays) into ECL component data sets in a consistent way.

Educational Track - Drupal in a Day Sponsors

Social Night Sponsors

In-Kind Sponsors

Media Partner Sponsors