Skip to main content

Planet Drupal

Content that's out of this world ...

Planet image
The articles on this page are ComputerMinds' contribution to the Planet Drupal aggregated article feed.  Planet Drupal is intended to collate interesting and useful Drupal content from around the web.

Aegir 3 and Drupal 10: just about working

26th Feb 2024

In my previous article I outlined that I really needed to get Drupal 10 sites running in Aegir 3. I had no time to wait around for other solutions, and I was going to try to decouple Aegir from running Drupal sites, so that it wouldn't be tied to Drupal versions.

Since writing that article and actually sitting down to do this work, I realised that it's quite an undertaking, and the approach outlined by Omega8cc in various github issues was worth a second look.

It works!

But it's wild. It comprises three main things:

  1. A custom/forked version of...
Read more

Aegir 3 and Drupal 10: eeek!

26th Jan 2024

Aegir is a hosting system built in Drupal, for Drupal.

It lets you easily create new Drupal sites and create databases, filesystems, virtual hosts etc. for the sites. You can manage hundreds or thousands of sites using a simple Drupal based UI. As simple as you would manage a list of 100 blog posts, you can manage 100 Drupal websites.

Currently the latest released version of Aegir is: Aegir 3.

Aegir 3 relies on Drush 8, which means it can work with: Drupal 7; Drupal 8 and Drupal 9. But not Drupal 10. Oh.

I have need for it to...

Read more

Irina's experience of Drupalcon Lille

26th Oct 2023

Drupalcon Lille 2023 was my first experience of a large Drupal event. I didn't know what to expect but I was so excited and looking forward to it! I have to say Drupalcon exceeded all of my expectations, in a good way!

In the beginning, I tried to remain humble as I’d never seen so many Drupal villagers before. But it didn’t take me long to start chatting to all the exhibitors, and contributors and connect with the community. It was a great opportunity to learn more about Drupal and be part of interesting sessions and informal conversations. It was...

Read more

Andrei's first Drupalcon

25th Oct 2023

A little over a year ago, I ventured into the world of Drupal; a complex content management system. Despite making considerable progress in understanding its intricacies, it's widely acknowledged that Drupal presents a steep learning curve. To navigate this learning curve successfully, one must maintain unwavering dedication and find satisfaction in troubleshooting and problem-solving, which can provide a rewarding sense of achievement.

I was fortunate to have an exceptional team that provided a constant stream of knowledge, invaluable advice, and overall support in my pursuit of mastering Drupal. A significant milestone in my Drupal journey was the invitation to attend...

Read more

Our favourite Drupalcon sessions, part 1

19th Oct 2023

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 for our clients, or ways to accelerate projects. Drupal is built on collaboration so it’s only fair to give back where we can. My colleague Steven has given back by volunteering to help some sessions run smoothly. 

As for the front-led seminars, here’s which ones each of us found most interesting… 

Andrei: Decoupling your search solution...

Read more

Drupalcon Lille: The keynotes so far

18th Oct 2023

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 about the first main keynote sessions, with more articles in the pipeline.

French Drupal association's presentation on the parts of a baguetteTuesday opened the conference with a comical introduction from the local French Drupal association, in which we were taught which part of a baguette is «le quignon» and which is «les miettes». They – the...

Read more

Removing invalid query string parameters passed to a view

3rd May 2023

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 upgraded from Drupal 7 to Drupal 9 which featured a product search that was built using Views.

Due to slight differences in the way in which the view and facets were built in the Drupal 9 site, this resulted in slightly different URLs being used when the user would filter the...

Read more

How to: Implement an automated Commerce Order state transition

3rd Apr 2023

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.

The Drupal Commerce 2.x module (for Drupal 9, 10) has the concept of order 'Workflows', along with defined 'States' and 'Transitions'. A workflow is a set of states and transitions that the order will go through during its lifecycle. Transitions are applied to an order and this will progress the order from...

Read more

Migrating cropped images

13th Mar 2023

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, which is better in a few ways but is also fundamentally different. The old site referenced the cropped images from content, only bringing in the originally-uploaded images for edit pages, to allow editors to adjust the cropping, which was then used wherever that image appeared on the frontend. But the new Image Widget Crop module allows configuring different crops for different situations.

The real challenge was in migrating the data! But we call ourselves Drupal experts, so of course we dug to find solutions. We found the following steps were necessary...

Read more

Drupal 10 upgrade: Custom code upgrades

7th Mar 2023

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

The upgrade status module gives us a nice report of each custom project and what changes it thinks are required to bring the code up to date to work with Drupal 10.

We really don't have a lot of custom module code, and the code that we do have is very simple, standard Drupal 8/9/10 stuff, so there are a couple of calls to taxonomy_term_load_multiple_by_name to remove, and an accessCheck to add to an entity query, but other than that our custom...

Read more