New! Drupal 11: Building A Link Directory: Part 1

This is the first part in a series of articles looking at creating a link directory in Drupal.

In this article Phil goes through how he set up the link directory in Drupal, how links are added, and how the site is able to take screenshots of the links as they are added to the directory.

https://www.hashbangcode.com/article/drupal-11-building-link-directory-part-1
#drupal #drupalDevelopment #hashbangcode

New! Drupal 11: Cascading Select Forms With HTMX

This is part four of a series of articles looking at HTMX in Drupal.

In this article we will look at creating a form that contains multiple select elements and then use HTMX (and a little bit of the form states API) to tie them together so that selecting one element updates the others.

https://www.hashbangcode.com/article/drupal-11-cascading-select-forms-htmx

#drupal #drupal11 #htmx #drupalDevelopment #hashbangcode

Drupal 11: Cascading Select Forms With HTMX

This is part four of a series of articles looking at HTMX in Drupal. In the last two articles we looked at using HTMX with controllers in different ways. This time I'll be venturing into the world of HTMX and forms.

#! code

From the archive! Drupal 10: Testing Migration Process Plugins

Creating migration process plugins is quite easy in Drupal. What isn't easy is fixing things in content after the migration has run.

This article goes over creating a migration process plugin, and then writing unit tests for it. Essential if you want to ensure that they change content correctly before running the migration.

https://www.hashbangcode.com/article/drupal-10-testing-migration-process-plugins
#drupal #drupalDevelopment #drupalMigration #hashbangcode

Drupal 10: Testing Migration Process Plugins

Drupal's migration system allows the use of a number of different plugins to perform source, processing, and destination functions. Process plugins are responsible for copying and sometimes manipulating data into the destination. There are a number of different process plugins that allow you to get data in different ways and and apply it to your destination fields.Both the core Migrate module and the excellent Migrate Plus module contain a number of different process plugins that you can use to process your data in different ways.

#! code

New! Drupal 11: Creating A Tabbed Interface With HTMX

This is part three of a series of articles looking at HTMX in Drupal.

In this article we will be creating a tabbed interface in Drupal, where HTMX is used to power loading the data in a tab like section without reloading the page.

https://www.hashbangcode.com/article/drupal-11-creating-tabbed-interface-htmx
#drupal #drupalDevelopment #drupal11 #htmx #hashbangcode

Drupal 11: Creating A Tabbed Interface With HTMX

This is part three of a series of articles looking at HTMX in Drupal. Last time I looked at using HTMX to run a "load more" feature on a Drupal page. Before moving onto looking at forms I thought a final example of using HTMX and controllers to achieve an action.

#! code

From the archive! A Look At HTMX With PHP

We have more Drupal and HTMX articles coming next week. In the meantime, here's a look at HTMX and PHP.

https://www.hashbangcode.com/article/look-htmx-php

#htmx #php #hashbangcode

A Look At HTMX With PHP

HTMX is a JavaScript library that can be used to issue AJAX requests, create CSS transisions, and set up web sockets using HTMLThe power of HTMX is that it can be used without writing any custom JavaScript code. It works by looking for attributes in HTML tags using that information to set up events, user interaction, and send requests to a back end. The system is backend agnostic and so will essentially work with any system that can accept, interpret, and respond to the requests.

#! code

New! Drupal 11: Building A "Load More" Feature For Paginating Nodes Using HTMX

In this article a controller action is created to load some pages of content to display them as a list.

New items can be appended to the existing list using a HTMX callback, creating a load more feature.

https://www.hashbangcode.com/article/drupal-11-building-load-more-feature-paginating-nodes-using-htmx
#drupal #drupal11 #drupalDevelopment #drupalHtmx #hashbangcode

Drupal 11: Building A "Load More" Feature For Paginating Nodes Using HTMX

Following on from my last article, an introduction to HTMX in Drupal, I wanted to start looking at examples of HTMX being used to power interactivity in Drupal in different ways.I thought a good place to start this off would be to look at using HTMX in a simple controller. By creating a route to a controller we can render content and then inject HTMX attributes to perform actions with the same controller.

#! code

From the archive! Drupal 9: Extending Drupal Base Classes Without Overriding Constructors

This article details a technique for injecting dependencies into constructors, forms, and plugins without needing to override the constructor.

We break down how to use dependency injection and what the technique does to improve this in Drupal.

Despite the article being written for Drupal 9, the technique is still relevant in Drupal 11.

https://www.hashbangcode.com/article/drupal-9-extending-drupal-base-classes-without-overriding-constructors
#drupal #drupalDevelopment #hashbangcode

Drupal 9: Extending Drupal Base Classes Without Overriding Constructors

I have been using the Drupal dependency injection system for a while now, even giving talks and writing articles on the subject. As the release of Drupal 10 is just around the corner I have been thinking more about how to override dependencies to plugin classes.

#! code

New! Drupal 11: Making Interactive Elements With HTMX

HTMX is a JavaScript library that allows you to make ajax calls and create CSS transitions without writing any JavaScript code.

In this article we will look at how HTMX is integrated into Drupal, and what services exist to help you use it within the Drupal system.

https://www.hashbangcode.com/article/drupal-11-making-interactive-elements-htmx
#drupal #htmx #drupalDevelopment #hashbangcode

Drupal 11: Making Interactive Elements With HTMX

HTMX is a JavaScript library that allows you to make ajax calls and create CSS transitions without writing any JavaScript code. It works by adding attributes to HTML elements, which it then uses to set up and perform ajax requests, swap elements, and a few other things.It was added to Drupal in version 11.3.0* and gives developers the ability to create interactive elements using render arrays and HTML attributes. The intent is to replace the entire ajax sub-system with one built around HTMX, and there is quite a lot of work ahead to accomplish this task.

#! code

New! DrupalCamp England 2026

Last weekend Phil attended DrupalCamp England 2026, at the University of Salford.

In this article, Phil writes about his experiences at the camp over the two day event.

https://www.hashbangcode.com/article/drupalcamp-england-2026
#drupal #drupalCampEngland #drupalCampEngland2026 #hashbangcode

DrupalCamp England 2026

The weekend of 28th February to the 1st March saw the second DrupalCamp England event with around 100 people attending the University of Salford, not far from Manchester, for the two day event.I had submitted a talk and the camp organisers had accepted it and also decided to make me a featured speaker, which was an incredible honour. As such I was part of the communications being sent out in the weeks before the event.

#! code

Next Tuesday is the first #! code meetup.

For our first session, @philipnorton42 will be talking about HTMX in Drupal.
This will be an online event, hosted via zoom.

RSVP here : https://luma.com/kyr1krhe
#hashbangcode

#! code Meetup March 2026 · Zoom · Luma

This is the first #! code monthly meetup. This is a general web dev meetup where we discuss all things related to the web development industry. For our first…