Skip to main content
Home
Drupal life hacks

Main navigation

  • Drupal
  • React
  • WP
  • Contact
  • About
User account menu
  • Log in
By admin, 23 September, 2025

Farewell, “Advanced” in Views: No More Collapse and Expand

Ah… we all got used to it: opening a view, clicking Advanced, and suddenly diving into a whole world of relationships, contextual filters, and other “special” settings.
For some, it was a ritual — like opening an old book to a favorite page. For others — a minor annoyance, an extra click every time.

With Drupal 11, that little movement is now a thing of the past.

Tags

  • #Drupal Planet
By admin, 20 September, 2025

Migrating from node_type_get_names() in Drupal 11: Full Guide + Working Module Example

As Drupal continues its evolution toward a cleaner, service-oriented architecture, developers must adapt to API changes that improve flexibility and maintainability. One such change in Drupal 11.3.0 is the deprecation of node_type_get_names(), a function long used to retrieve node type labels.

This article walks you through:

Tags

  • #Drupal Planet
  • EntityTypeBundleInfo
By admin, 16 September, 2025

🔐 Drupal 11.2.5 Update: Composer Path Configuration Is No Longer Flexible—Here’s What You Need to Know

With the release of Drupal 11.2.5, a subtle but important change has landed that affects how sites interact with Composer and rsync via the Package Manager. If you’ve been relying on configuration to define executable paths, it’s time to refactor.

🚫 What Changed?

For security reasons, Drupal core has removed the ability to configure paths to Composer and rsync via configuration files. This means:

Tags

  • #Drupal Planet
  • Composer Path Configuration
By admin, 13 September, 2025

Drupal 11.x: Deprecation of NodeStorage Methods — What You Need to Know

As Drupal continues to evolve, version 11.3.0 brings a significant shift in how developers interact with node revisions. The NodeStorage class, once a go-to for revision-related operations, has seen most of its methods deprecated. This change is part of a broader effort to streamline the API and encourage the use of entity queries.

Let’s break down what’s changed, why it matters, and how to adapt your code.


🔧 What’s Deprecated?

The following methods in Drupal\node\NodeStorage are now deprecated:

Tags

  • #Drupal Planet
  • NodeStorage
By admin, 13 September, 2025

The New \Drupal\DrupalInstalled Class in Drupal 11.3: Why and How to Use It

With the release of Drupal 11.3, the new DrupalInstalled class has been introduced for site builders and developers, simplifying cache management and container rebuilds.


What’s New

The Drupal Scaffold Composer plugin now generates a file:

Tags

  • #Drupal Planet
  • DrupalInstalled
By admin, 12 September, 2025

Simple XML Sitemap vs XML Sitemap: Best Drupal Module

.infographic { display: flex; justify-content: space-around; margin: 20px 0; }

Introduction

A well-structured XML sitemap is essential for Drupal SEO. It helps search engines like Google and Bing crawl your site efficiently and index all important pages. Drupal provides two main modules for generating sitemaps: Simple XML Sitemap and XML Sitemap. Understanding their differences will help you choose the right module for your website.

Tags

  • #Drupal Planet
  • XML Sitemap
By admin, 5 September, 2025

Tailwind CSS and Custom Themes in Drupal 10: A Complete Guide for Frontend Developers

Introduction:

Frontend development used to rely on HTML and CSS files connected manually. Today, developers use modern tools to generate up-to-date, browser-compatible CSS.

Tailwind CSS is a modern utility-first CSS framework, perfect for building custom themes in Drupal 10. It allows developers to create unique designs quickly and efficiently without writing excessive CSS.

Tags

  • #Drupal Planet
  • Tailwind
By admin, 30 August, 2025

How to Safely Use getToolkitId() in Drupal 11 ImageFactory Subclasses

Drupal is constantly evolving, and keeping up with changes in its core APIs is crucial for module developers. One important update in Drupal 11.3 affects how developers work with the ImageFactory service and its toolkit. In this article, we’ll explain the change, why it matters, and provide a clear example of how to update your ImageFactory subclasses to use the getToolkitId() method safely.

Tags

  • #Drupal Planet
  • Method getToolkitId
  • ImageFactory
By admin, 30 August, 2025

Drupal and Revisions: Why You Can’t Save the Current Default Revision as Non-Default

Understanding Revisions in Drupal

In Drupal, revisions (or versions of content) allow you to track changes over time. Every time an editor saves content, a new revision can be created.

Example:

  • An editor publishes an article → Revision #1 is created (default).
  • A week later, the editor updates the article → Revision #2 is created (becomes default).
  • The database keeps both revisions, but visitors see only the default version.

Revisions let you:

Tags

  • #Drupal Planet
  • Revision
By admin, 29 August, 2025

Drupal 10.1 New Features: Easier Twig Debug and Cache Management

If you’ve ever worked on theming in Drupal, you know the pain: enabling Twig debug or disabling caches usually required digging into services.yml, updating settings.php, or installing contrib modules.

With Drupal 10.1, this process has been simplified. A new Development settings page in core now allows developers to manage these features directly from the admin UI.

👉 Navigate to: Configuration → Development settings

Tags

  • #Drupal Planet
  • Drupal Twig debug

Pagination

  • First page
  • Previous page
  • Page 1
  • Page 2
  • Page 3
  • Page 4
  • Page 5
  • Page 6
  • Page 7
  • Page 8
  • Page 9
  • …
  • Next page
  • Last page
Powered by Drupal