10.x-x.x

Image
Custom Publishing Options and Devel Generate

The upgrade from Drupal 8/9 to Drupal 10 is considered to be one of the easiest major upgrades in Drupal's history. This is because Drupal 10 is built on the same codebase as Drupal 8/9 and focuses on removing deprecated code and dependencies.

Image
Search

In a project where we use the Search API to search for content, we noticed that nodes that are marked as "noindex" by the Metatag module are visible during internal searches. Here is a ready-made solution for how to avoid this.

Image
Migration

I have two content types that have the same fields. For certain nodes, I would like to convert from one node type to another. How can I accomplish this?

Image
drupal entities

This is an issue that can happen in both Drupal 8 and Drupal 9. This is due to the fact that Drupal doesn’t actually delete the data for the field when you delete the field. It deletes the data during cron runs. If cron hasn’t been run enough times since you deleted the field, drupal won’t let you uninstall the module.

Image
drupal entities

Retrieving the image URL from an image field in Drupal 8 and 9 seemed pretty straightforward too. Even the solution for getting the image style URL from a simple image field can be found quite easily. Getting the image URL from a media field can also be looked up easily.

Image
The example/result of "Update Manager Advanced" module

The "Update Manager Advanced" module modifies the Drupal "Available updates" email report to include the information normally shown at /admin/reports/updates/update, with links to the module updates and their release notes description.

Image
drupal entities

During a migration of the content and testing the functionality, we are playing a lot with adding/removing menu items for nodes. Here's a snippet on how to delete all links in a menu.

Image
drupal entities

Sometimes we need to completely remove all nodes, for example, when you copy a site for another project. Here the examples.

Image
Scroll To Top / Back To Top

Very often when developing or maintaining a site, clients ask me to create functionality in the footer that will scroll the page to the top. I know this can be done with the helpful and wonderful Back To Top module, but I am the person who tries to have as few enabled contrib modules as possible on the site and save time on support in case a new version of the module appears. In my short article, I will show how to make similar functionality in 5 minutes.

Image
Drupal Redirects

Sometimes we need to completely remove redirect entities, for example, when you copy a site for another project. Here are two examples.