developer resources
Codebales holds an ever growing number of solutions to problems that we have experienced in our day to day code writing
Selected filter
249
results
Andrew Fletcher
•
When working with Git, the .gitignore file plays a critical role in controlling which files and folders are tracked by version control. Yet, many developers are unsure when changes to .gitignore take effect and how to manage files that are already being tracked. This uncertainty can lead to problems, particularly in large codebases.
Recently, while updating a project with a new .gitignore rule, an interesting error surfaced that sheds light on how to properly manage .gitignore changes — and how...
Andrew Fletcher
•
Upgrading to Drupal 10.4+ you might have noticed a warning in their code editor...
Andrew Fletcher
•
The upgrade from PHP 8.3.14 to PHP 8.4.4 presents challenges for Drupal 10.4...
Andrew Fletcher
•
Duplicate records in Drupal can cause significant issues, particularly when they...
Andrew Fletcher
•
When working on Drupal migrations, developers often assume that adding a new...
Andrew Fletcher
•
The Drupal theme configuration has undergone recent changes made to the Webpack configuration, SCSS and JavaScript handling, and automation of updates to the orw.libraries.yml file in the custom Drupal theme. These changes are designed to improve the build process, enhance maintainability, and streamline development for other developers working on this theme.
Overview of changes
1. Webpack improvements
Consolidated the Webpack configuration to handle SCSS and JS files...
Andrew Fletcher
•
Accessibility is a fundamental aspect that ensures experiences are inclusive for...
Andrew Fletcher
•
Occasionally, a Drupal site may display a warning about a module being "Missing...
Andrew Fletcher
•
When troubleshooting network issues or configuring devices, knowing your IP...
Andrew Fletcher
•
DDEV has become a popular tool for local web development, offering a streamlined...
Andrew Fletcher
•
The release of Drupal 10.4.0 sees stricter validation rules being applied to Twig templates, which can result in unexpected errors after an upgrade. One such issue involves the use of regular expressions within Twig's matches operator, leading to syntax errors that can break template rendering.
This is a situation I had recently after upgrading to Drupal 10.4.0 and provides a clear resolution for the problem.
The error
After upgrading to Drupal 10.4.0, users may encounter an error similar...
Andrew Fletcher
•
Observing colleagues work with Drush, it’s clear they have the basics down pat....
Andrew Fletcher
•
Transferring files between development and production environments is a critical...
Andrew Fletcher
•
If you’re running a website on Drupal 10.x or 11.x, you might encounter a...
Andrew Fletcher
•
In today's security-conscious world, enforcing HTTPS on your web applications is...