Skip to main content
ComputerMinds

Articles

Modern Drupal

Drupal 11 Upgrade Gotchas - Slick Carousel

Even as a seasoned Drupal developer, when upgrading a Drupal 10.x site to Drupal 11.x you can still encounter a number of weird issues with some older legacy code on the site, which had previously (unbeknownst to you) relied on functionality that has now changed in some way,…Read article →

Automatically generate forms from config schema

Drupal's form API has been brilliant for many years. Still, recently I found myself wondering why I needed to build a configuration form if I already had a schema for my config. Defining a schema facilitates API-first validation (including some pretty smart constraints),…Read article →

My text filter's placeholder content disappeared!

When I upgraded a site from Drupal 10.1 to 10.2, I discovered a particularly serious bug: the login form on our client's site vanished ... which was pretty serious for this site which hid all content behind a login!Read article →

Format Drush output for easy wins!

Drush, the brilliant command-line tool for Drupal, is capable of giving you its output in several ways. Its global --format parameter can be set to a type that you can use in useful ways. Most recently, I found this incredibly useful when I had made some configuration changes…Read article →

Webform Protected Downloads

I recently produced the first release of the Webform Protected Downloads module that is compatible with Drupal 10. It provides the ability for sites to have 'gated' content which users can download once they have filled out a form for their details. This can convert engaged…Read article →

Removing invalid query string parameters passed to a view

As a Drupal site administrator, you may notice in the website logs that there might be a large number of repeated log messages along the lines of "An illegal choice has been detected. Please contact the site administrator." We recently had this problem on a Drupal site that was…Read article →

How to: Implement an automated Commerce Order state transition

A common requirement for any website that sells products is to have a mechanism in place that ensures orders placed on the website are 'Exportable' - being made available as a file that can be sent across to a different system, to handle the processing of the order.Read article →

Migrating cropped images

One of our big Drupal 7 to Drupal 9 migration projects included bringing across image cropping functionality and data on a longstanding client's website. This site had used the Imagefield Crop module, but that was only for Drupal 7. We set up Image Widget Crop for the new site,…Read article →

Migrating Drupal 7 Files into Drupal 8 / 9 Media entities

This article assumes a basic knowledge of the building of custom modules, the Drupal 8 / 9 Migration system, and the processes behind creating customised migrations from a previous version of Drupal.Read article →

Apply Drupal 9 compatibility patches with Composer

Update! Since this article was written, a new 'lenient' composer endpoint has been created on Drupal.org to support using modules with Drupal 9 that haven't been marked as compatible with it yet. See the documentation, which boils down to adding a new common entry under…Read article →

Rendering fields in Drupal 9 (the right way)

Many of us at ComputerMinds have always taken pride on doing Drupally things the right way whenever possible, and then helping the community do so too. One of these things is displaying values from fields on content entities. We wrote before about how to do this in Drupal 7 and…Read article →

Drupal 9, it's here!

Update: Since writing this article the EOL of Drupal 7 has been extended from November 2021 until November 2022.Read article →

Upgrading your website to Drupal 8 or 9

Update: Since writing this article the EOL of Drupal 7 has been extended from November 2021 until November 2022.Read article →