Latest Blog Posts

The challenge of using responsive image styles with Drupal's layout builder

Content management systems like Drupal provide dynamic layout building tools. This article details the challenges associated with trying to deliver the most appropriately sized image in these dynamic layouts.

Tags: Drupal Planet, Drupal 8

Comments

Adding MySQL UTF8MB4 support to hundreds of Drupal 7 multi-sites

Unicode characters encoded using UTF8 can technically use 1 to 4 bytes to represent a single character. However, older versions of MySQL only provided support for storing UTF8 encoded characters that used 1 to 3 bytes. This was enough to cover the most commonly used characters, but is not suitable for applications that accept user input where any character can be submitted (like emojis, which use 4 bytes). Newer versions of MySQL provide a character encoding called utf8mb4 to fix this issue.

Tags: Drupal Planet

Comments

Overriding module configuration in a Drupal 8 installation profile (with some "gotchas")

I'm working in creating a Drupal 8 installation profile and learning how they can override default configuration that its modules provide at install time.

Tags: Drupal Planet

Comments

Importing Images Within an RSS Feed Using the Drupal 7 Feeds Module

Yes, a blog post about Drupal 7!

I recently worked on an enhancement for a large multi-site Drupal 7 platform to allow its users to import news articles from RSS feeds. Pretty simple request, and given the maturity of the Drupal 7 contrib module ecosystem, it wasn't too difficult to implement.

Tags: Drupal Planet, Drupal 7

Comments

Keeping a view of upcoming events fresh in Drupal 8

Imagine you have a view that lists upcoming events on your Drupal 8 site. There's a date filter that filters out any event who's start date is less than the current date. This works great until you realize that the output of the view will be cached in one or many places (dynamic page cache, internal page cache, varnish, etc). Once it's cached, views doesn't execute the query and can't compare the date to the current time, so you may get older events sticking around.

Tags: Drupal Planet

Comments