A component-based theming case study

Often times I’ve seen articles talking about the benefits of components to developers, but less often I see articles talking about the benefits of components to site builders and editors. Component-based theming and site building is where the web is going. WordPress is there with Gutenberg’s block system. Drupal uses Paragraphs, Layout Builder, and probably […]

Is it bad practice to print fields that will use Drupal WYSIWYG in Pattern Lab using |raw?

Probably. This is a question I recently asked in the Drupaltwig Slack #pattern-lab channel. Some background: I recently had a situation where I had a “Page introduction” component. This component has 1 field, and it’s a WYSIWYG field, which means it needs to print HTML. Here is the structure of my component: page-introduction |- page-introduction.twig […]

Sharing content around multi-sites in Drupal 7 using JavaScript

Problem: We have 150+ multi-sites and would like to share certain lists of content (Views) between them. In this specific case, there is a need to show a list of programs on a department site. Each department has their own multi-site, and there is 1 programs site that all the data will come from as […]

Debugging Twig templates with Drupal VM + Xdebug + PHPStorm

Drupal VM comes preconfigured to support Xdebug but being super new at Twig debugging/Xdebug, it took quite a bit of research to get it to the point where I can debug Twig templates within PHPStorm. I tried to document my journey for others to check out, hopefully it helps! Requirements: Drupal 8.6.x site running in […]