Drupal feeds

Matt Glaman: Preventing a `drush updb` from clearing your caches

Drupal Planet -

By default, drush updb clears the cache after applying database updates. For deployments where you want to avoid an unnecessary performance hit, you can prevent this default behavior using a Drush pre-command hook. The updb command has a --cache-clear flag that you can set up in your CI workflow, but what about local testing? Will you or your team remember to set that flag every time?

I've come to learn this may be a controversial take. This requires having a deployment identifier set and crafted update hooks for specific cache invalidations, router rebuilds, etc. But if you want a highly performant Drupal application with faster deployment times, it's crucial.

LostCarPark Drupal Blog: Advent Calendar day 2 - Autowiring all the things

Drupal Planet -

Advent Calendar day 2 - Autowiring all the things james Tue, 12/02/2025 - 10:00

Today we are getting a bit technical and diving into Autowiring with Luca Lusso.

What is autowiring? Well, since version 8, Drupal has used Services to provide many small pieces of functionality. Basically, a service is a black box you can use to do something on your site. For example, the Messenger service displays status messages on a page.

In Drupal 8 and 9, when you used a service in your code, you needed to tell Drupal what service you wanted. This was a bit messy, because you needed to find out the class that the service creates, and you also needed the service name. It also required you…

Tags

Drupal blog: Drupal Goes to the U.N.

Drupal Planet -

The recent Talking Drupal episode featuring Mike Gifford and Tiffany Farriss present how Drupal is playing a role in the global conversation on digital public infrastructure. Their discussion highlights what the Drupal community already knows, governments are beginning to treat open source as a strategic requirement.


Tiffany Farriss representing Drupal at United Nations’ Open Source Week.

The United Nations’ Open Source Week brought together policymakers, Open Source Program Office (OSPO) leaders and practitioners from across sectors, and Drupal had a seat at the table. The UN uses Drupal, as do most of their members. It reflects the project’s maturity, governance structure and long record of delivering large-scale public services.

The episode goes beyond event commentary. Mike and Tiffany confront a core tension in today’s public-sector technology landscape. Digital public infrastructure is becoming a contested space, shaped by national policy, commercial influence and competing definitions of “openness”. Drupal’s model—global, diverse, community-governed, and not tied to a single vendor—puts it in a different category than many projects marketed as “open”. Their conversation makes the case that Drupal’s longevity and governance give it credibility that is hard to replicate. If you work in public-sector digital services or care about the future of open source in government, this is worth your time.

Most importantly, the talk challenges Drupal professionals to think bigger. If open source is becoming the backbone of digital government, then Drupal contributors have a role to play in shaping that future. That requires awareness, coordination and a willingness to step into policy-adjacent discussions. Mike and Tiffany lay out why these global conversations matter and how Drupal can show up with confidence.


Tim Lehnen and Mike Gifford at United Nations’ Open Source Week

If you want to understand where Drupal fits in the next decade of public-sector digital transformation, watch or listen to the episode and explore the details at https://talkingdrupal.com/528

LostCarPark Drupal Blog: Advent Calendar day 1 - Neurodiversity: An Underrated Superpower in Business

Drupal Planet -

Advent Calendar day 1 - Neurodiversity: An Underrated Superpower in Business james Mon, 12/01/2025 - 23:59

I really enjoy keynotes at DrupalCon, particularly those given by guests from outside the Drupal community. This year’s European DrupalCon in Vienna was no exception, and I think Vera Herzmann’s talk on Neurodiversity resonated with everyone present.

I loved how she highlighted neurodiverse people are not disabled or a problem to be solved, but people with superpowers valuable to business, and an asset to be cherished.

She also really engaged with the audience, giving us items to discuss with the people nearby, and I think the audience came back with some excellent points.

The video of her…

Tags

LostCarPark Drupal Blog: Advent Calendar 2025 - the new plan

Drupal Planet -

Advent Calendar 2025 - the new plan james Mon, 12/01/2025 - 19:02 Image Body

So first, an apology. I have failed in my original plan. A nasty cold/flu thing sapped my energy, and I wasn’t organised enough to make it work.

The plan was to have initiative leads nominate people who have made an important contribution to their projects, and to feature those “People of Drupal” behind the doors.

Think you to all the people who made great suggestions, and thank you to the people they suggested who responded positively, but we’ve run out of time to make it work.

I still think “The People of Drupal” has great potential, and hopefully we can make it work if we start much earlier…

Freelock Blog: Contrast Issues -- can you read the text?

Drupal Planet -

Contrast Issues -- can you read the text? Dec 01, 2025 0

One of the most common issues we run into making websites accessible is contrast -- making sure the difference between the color and brightness of the text against the background is enough that it's clearly readable.

Blue text on a dark background can be very difficult to read -- but it's not just brightness. Red-green color-blindness affects around 8% of males around the world. Take a screen out into bright sunlight and try to read text that's similar brightness to its background, and you can start to understand that contrast issues affect everyone.

Read More

The Drop Times: Where Drupal’s Impact Lives

Drupal Planet -

Drupal has been counted out for years, yet it continues to power some of the most active and trusted websites on the internet. Trends come and go, but the data keeps pointing to the same truth: Drupal remains central to major digital experiences people rely on every day. That is why we built the Discover page at The DropTimes, a space that shows this reality plainly and in real time.

The Discover page gathers top Drupal sites using Tranco rankings based on actual traffic, not assumptions. It cuts through noise and shows who is using Drupal at scale and why it matters. Along with the rankings, we are steadily adding case studies that explain how organisations put Drupal to work in the real world. These insights highlight the decisions, goals and impact behind serious digital projects across industries.

With more than 3,000 sites already listed and many more on the way, our goal is simple: make Drupal’s ongoing relevance visible, understandable and impossible to ignore. As the page grows, so does the picture of a platform that is stable, adaptable and backed by a global community. This is an open invitation to explore, learn and contribute to a clearer understanding of what Drupal continues to achieve.

INTERVIEWDISCOVER DRUPALTUTORIALORGANIZATION NEWSPHPEVENTS

 

We acknowledge that there are more stories to share. However, due to selection constraints, we must pause further exploration for now. To get timely updates, follow us on LinkedIn, Twitter, Bluesky, and Facebook. You can also join us on Drupal Slack at #thedroptimes.

Thank you. 

Sincerely, 
Alka Elizabeth, 
Sub-editor, 
The DropTimes.

Peoples Blog: Top Drupal LMS Features You Should Look For — Guide for your Education Businesses

Drupal Planet -

If you run an education business today—whether it’s an online academy, coaching platform, corporate training portal or skill-development institute—choosing the right Learning Management System (LMS) is one of the most important decisions you will make. Your LMS becomes the backbone of your teaching, course delivery, student engagement and business growth. Among the many LMS plat

Dries Buytaert: Thank you, Drupal Security Team

Drupal Planet -

Today is Thanksgiving in the US. I know it's not a global holiday, but it has me thinking about gratitude, and specifically about a team that rarely gets the recognition it deserves: the Drupal Security Team.

As Drupal's project lead, I'm barely involved in our security work. And you know what? That is a sign that things are working really well.

Our Security Team reviews reports, analyzes vulnerabilities, coordinates patches across supported Drupal versions, and publishes advisories. They work with Drupal module maintainers and reporters to protect millions of websites. They also educate our community proactively, ensuring problems are prevented, not just fixed. It can be a lot of work, and delicate work.

To get an idea of the quality of their work, check out recent advisories at drupal.org/security. I know it's maybe strange to point out security advisories, but their work meets the highest standards of maturity. For example, Drupal is authorized as a CVE Numbering Authority, which means our security processes meet international standards for vulnerability coordination.

Whether you're running a small blog or critical government infrastructure, the Security Team protects you with the same consistency and professionalism.

While I'm on our private security team mailing list, they do all this without needing me to oversee or interfere. In fact, the team handles everything so smoothly that my involvement would only slow them down. In the world of open source leadership, there is no higher compliment I can pay them.

Security work is largely invisible when done well. Nobody celebrates the absence of breaches. The researchers who report issues often get more recognition than the team members who spend hours verifying, patching, and coordinating fixes.

All software has security bugs, and fortunately for Drupal, critical security bugs are rare. What really matters is how you deal with security releases.

To our Security Team: thank you for your excellence. Thank you for protecting Drupal's reputation through consistent, professional, often invisible work, week after week.

Droptica: Recommended Vector Databases (VDB) for Drupal – Overview of AI Providers

Drupal Planet -

Vector databases have become a key component of modern AI applications in Drupal. Thanks to integration with the AI Search module, they enable semantic content search, reduction of hallucinations in AI chatbots, and implementation of advanced RAG (Retrieval Augmented Generation) functions. Choosing the right VDB provider can significantly impact the performance, cost, and scalability of your AI solution in your Drupal project.

Dries Buytaert: Infinite scroll with htmx

Drupal Planet -

Several years ago, I built a photo stream on my Drupal-powered website. You can see it at https://dri.es/photos. This week, I gave it a small upgrade: infinite scroll.

My first implementation used vanilla JavaScript using the Intersection Observer API, and it worked fine. It took about 30 lines of custom JavaScript and 20 lines of PHP code.

But Drupal now ships with htmx support, and that had been on my mind. So a couple of hours later, I rewrote the feature with htmx to see if it could do the same job more simply.

It's something I love about Drupal: how we keep adding small, well-chosen features like htmx support. Not flashy, but they quietly make everyday work nicer. Years ago, Drupal was one of the first CMSes to adopt jQuery, and our early adoption helped contribute to its widespread use. Today, we're replacing parts of jQuery with htmx, and Drupal may well be among the first CMSes to ship htmx in core.

If, like me, you haven't used htmx before, it lets you add dynamic behavior to pages using HTML attributes instead of writing JavaScript. Want to load content when something is clicked or scrolled into view? You add an attribute like hx-get="/load-more" and htmx handles the request, then swaps the response into your page. It gives you AJAX-style interactions without having to write JavaScript.

To make the photo stream load more images as you scroll, I added an "htmx trigger". When it scrolls into view, htmx fetches more photos and appends them to the right container. The resulting HTML looks like this:

<div hx-get="/photos/load-more?offset=25" hx-trigger="revealed" hx-target="#album" hx-swap="beforeend"> <figure> ... </figure> </div>

The hx-get points to a controller that returns the next batch of photos. The hx-trigger="revealed" attribute means "fire when scrolled into view". The hx-target="#album" tells htmx where to put the new content, and hx-swap="beforeend" appends it at the end of that #album container.

I didn't want users to hit the last photo and have to wait for more to load. To keep the scrolling smooth, I added the trigger a few photos before the end. This pre-fetches the next batch before the user even realizes they are running out of photos. This is what the code in Drupal looks likes:

// Trigger 3 images before the end to prefetch the next batch. $trigger = array_keys($images)[max(0, count($images) - 4)]; foreach ($images as $key => $image) { … if ($key === $trigger) { // Add htmx attributes to the <div> surrounding the image. $build['#attributes']['hx-get'] = '/photos/load-more?offset=' . ($offset + $limit); $build['#attributes']['hx-trigger'] = 'revealed'; $build['#attributes']['hx-target'] = '#album'; $build['#attributes']['hx-swap'] = 'beforeend'; } }

And the controller that returns the HTML:

public function loadMorePhotos(Request $request) { $offset = $request->query->getInt('offset', 0); $limit = 25; $photos = PhotoCollection::loadRecent($offset, $limit); if (!$photos) { return new Response(''); } $build = $this->buildImages($photos, $offset, $limit); $html = \Drupal::service('renderer')->renderRoot($build); return new Response($html); }

Each response includes 25 photos. It continues fetching new photos as you scroll down until there are no more photos, at which point the controller returns an empty response and the scrolling stops.

As you can tell, there is no custom JavaScript in my code. It's all abstracted away by htmx. The htmx version took less than 10 lines of PHP code (shown above) instead of 30+ lines of custom JavaScript. The loadMorePhotos controller I needed either way.

The savings are negligible. Replacing a couple dozen lines of JavaScript won't change the world. And at 16KB gzipped, htmx is much larger than the custom JavaScript I wrote by hand. But it still feels reasonable. My photo stream is image-heavy, and htmx adds less than 0.5% to the initial page weight.

Overall, I'd say that htmx grew on me. There is something satisfying about declarative code. You describe what should happen, and the implementation disappears. I may try it in a few more places to improve the user experience of my site.

Pages

Subscribe to www.hazelbecker.com aggregator - Drupal feeds