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 […]

My Terminus Drupal 7 cheat sheet

The Terminus documentation is amazing. However, I tend to only use a couple commands over and over so I created this post so I can continually reference it and have some “copy/paste” ready commands to use on my projects. Get a URL to the latest snapshot of my production database Adding a new module and […]