11 Oct 2026

feedDrupal.org aggregator

#! code: Drupal 11: Don't Create Node During Content Import

Importing content with the Default Content module is really useful when populating a site with content. There's an increasing number of recipes and modules that can be used to populate a site with content either for setup or demonstration purposes.

Default content is really useful when figuring out how a system works as it can show relationships between content types that are not always simple to discern through the site itself. It also has a place when deploying content between sites as you can package up some default content and include that in a deployment step.

Occasionally, you'll want to tweak the content that is imported for different situations; with the reasons why you would want to do this being numerous. It might just be that you have a demo site and you wanted to tweak the content imported to better tailor it for the user. You could have a single recipe that contains the content and want to alter that for a specific demo.

I needed to do this selected default content import on a recent site as I was installing. A contributed module was used to populate the site with content to create a collection of examples. Although the content was good, I didn't want to import it all as some of it didn't make sense for a couple of scenario that I was looking at. That lead me to seeing if I could alter the content automatically as it was imported into the site, rather than manually delete content after the fact.

In this article we will look at some of the actions I tried to prevent content from being imported, before moving onto what the actual solution was. If you are following along at home, it is assumed that you already have a default content process setup and are just looking for change what content is imported without altering the source files.

Read more

11 Oct 2026 5:54pm GMT

Drupal Patterns: From Architecture to Innovation: Interactive Forms with htmx 4

Drupal's Form API comes with built-in tooling to allow any form element to initiate a submission. When combined the support for returning HTML fragments in htmx 4, it's very easy to make an interactive form for your users.

11 Oct 2026 1:36pm GMT

10 Oct 2026

feedDrupal.org aggregator

Freelock Blog: Drupal Meets Matrix part 2: Live Comments with ECA and HTMX

Drupal Meets Matrix part 2: Live Comments with ECA and HTMX

Dark presentation slide titled "Drupal Meets Matrix" with subtitle about the Matrix API.

John Locke

A comment thread in Drupal works totally fine. You fill in a form, click submit, and your comment gets posted. Same way it has for over 20 years.

But if somebody else replies when you're on the page, you don't see anything change, you don't get any notification.

dev corner icon
Dev Corner

10 Oct 2026 7:00pm GMT