Talking Drupal cover image

Talking Drupal

Talking Drupal #487 - Single Directory Components Workflow

Feb 3, 2025
Brian Perry, a senior front-end developer at Chapter 3 and Nintendo aficionado, joins Jacob Rockowitz, a Drupal consultant and module maintainer. They dive into Single Directory Components (SDCs), discussing their advantages and potential pitfalls. Topics include how SDCs streamline workflows and their future impact on decoupled front ends. The conversation also highlights the Embedded Content module's role in facilitating rich content creation within Drupal, likening SDCs to Minecraft blocks, and sharing best practices for integrating these innovative components.
01:11:16

Podcast summary created with Snipd AI

Quick takeaways

  • Single Directory Components (SDCs) offer a self-contained approach to Drupal component development, improving project clarity and accessibility.
  • The integration of the Embedded Content module with SDCs streamlines content management by enabling seamless embedding of various content types into CKEditor.

Deep dives

Understanding Single Directory Components

Single directory components (SDCs) are defined as a self-contained approach within Drupal for building components, where all essential files reside in a single directory. This organization aids in clarity and accessibility of the component files, including Twig templates, CSS styles, and JavaScript code. Components encapsulated in SDCs serve as primitive representations in Drupal's theming layer, facilitating the rendering of UI elements while keeping project structures simpler. When developing projects using SDCs, it is important to define component schemas in YAML files to establish clear standards for data and structure.

Get the Snipd
podcast app

Unlock the knowledge in podcasts with the podcast player of the future.
App store bannerPlay store banner

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode

Save any
moment

Hear something you like? Tap your headphones to save it with AI-generated key takeaways

Share
& Export

Send highlights to Twitter, WhatsApp or export them to Notion, Readwise & more

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode