Skip to main content
ComputerMinds

Articles · Page 2

Drupal Planet

Our favourite Drupalcon sessions, part 1

Personally I’ve found most value in the smaller sessions. There are discussion-style groups around a common interests (BoFs) and presentation seminars. I’ve enjoyed being able to share what wisdom I can in the former – for example, about what page building experiences work best…Read article →

Drupalcon Lille: The keynotes so far

Six of our team have come over to Lille in France where the annual Drupal conference for Europe is this year. It’s a new experience for some and a chance to reconnect with friends in the community for others. We’re all here to learn, and also share where we can. I’ll talk here…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 →

Drupal 10 upgrade: Custom code upgrades

This one is entirely on us, we wrote the custom code, which makes us responsible for maintaining it.Read article →

Drupal 10 upgrade: File to media

We're continuing our series on upgrading this very website to Drupal 10...but our first proper bit of work to upgrade this site is essentially nothing to do with Drupal 10!Read article →

Drupal 10 upgrade: Defining the project scope

Let's define the scope and goals of our project to upgrade this very website to Drupal 10.Read article →

Drupal 10 upgrade: Introduction

On 14th December 2022 Drupal 10 was released. We can't say we immediately set about the task of upgrading all our Drupal 9 sites, but we did start thinking and planning to move all our sites in 2023.Read article →

Allow editors to use HTML attributes by default

Drupal provides an excellent sanitisation system to filter the HTML content that editors might create. Think of it like a series of traffic cops that filter different vehicles into different lanes. Some content is allowed through to its destination, some has to be transformed…Read article →

PhpStorm coding tip for Drupal services

Here's a super simple tip to help you work with services for Drupal in PhpStorm (our favourite IDE). First, ensure you have enabled the Drupal Symfony Bridge and Symfony Support plugins; they're brilliant for auto-complete suggestions, and navigating around services,…Read article →

Get Hook-ed on Object-Oriented Programming

When writing a hook implementation, for example of hook_cron, there's often a tendency to write purely procedural code, like this: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 →

Custom node routes

Sometimes it can be handy to have extra pages for a node (or any entity). For example:Read article →

Entity Extra Field module: display blocks & views amongst fields

I'm a fan of configuring things for display through Drupal's admin UI. It gives site builders confidence and power. What if you want to place blocks or views listings in amongst fields on pages of content? For example, to display:Read article →

Context-aware blocks

Defining your own Drupal block plugins in custom code is really powerful, but sometimes you can feel limited by what those blocks have access to. Your block class is like a blank canvas that you know you'll be pulling data into, but how should you get that data from the…Read article →

ComputerMinds are diversifying

The last year has highlighted to us all how important it is for the global community to come together and solve problems. We rate ourselves highly at ComputerMinds, and figure it's time to share and stretch our abilities to the full. So I'm here on this special day to announce…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 →

Core web vitals - how to debug and improve cumulative layout shift (CLS) issues

TLDR : Check your cookie popup!Read article →

Reflecting on Drupal Slack

Over the last year or so, I've got quite engaged with Drupal slack. I've loitered in channels like #d9readiness and #config, discussed issues with members of the security team, and asked questions to module maintainers (and received answers!). But most of all, I've helped…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 →

A recipe for editing & translating over 100 fields

I recently released a new contributed module to aid translation on Drupal 7 sites: Entity Translation: Separated Shared Elements Form (ETSSEF). Yes, it has a convoluted name! It finally resolves a suggestion from years ago in an Entity Translation project issue, to allow…Read article →

Recovering deleted content

Drupal 7 introduced the brilliant feature of letting users cancel their own account and with it various options for what to do with content they've created when they are cancelled. One of these options is to:Read article →

Our 12 month contribution challenge so far

So we challenged ourselves to contribute back to the Drupal community this year. How are we doing? Here's a simple update on what each of us has done so far. Hopefully we'll see other ComputerMinds team members join this list by the end of the year.Read article →