Content Modeling for Multilingual Drupal: Translate by Chunks, Not by Pages
Drupal: Replace Colorbox with GLightbox
1 Introduction
Lightbox plugins have been a staple of Drupal-powered websites for over a decade. They allow editors to display images, videos, and other media in an overlay without navigating away from the current page — a pattern visitors expect on modern, media-rich sites.
Drupal CI-Driven Configuration Management using Jenkins and GitLab CI
1. Why CI-Driven Configuration Management Matters
Drupal's configuration system is one of the platform's greatest strengths — and one of its most reliable sources of pain. The ability to export and import every piece of site configuration as YAML files is powerful, but only if everyone agrees on who is responsible for moving those files between environments. In most teams, that agreement never quite exists.
The classic problems are well-known to anyone who has shipped a Drupal site:
Upgrading Drupal 7 to the Latest Version of Drupal
Although support for Drupal 7 has already ended and no new updates will be released, all new modules are now being published for Drupal 11+, there are still many websites running on Drupal 7 that are unable to migrate to newer versions. There are valid reasons for this, especially for sites with a large amount of custom code.
How to rewrite jQuery Cookie, core/js-cookie library in Drupal with the js_cookie module
Why this change?
- In Drupal 9, jQuery Cookie was removed from core and replaced with the js-cookie library. A BC shim (
core/jquery.cookie) existed during Drupal 9 but was removed for Drupal 10.
Drupal Update
This section is about updating the Drupal core from previous versions (including legacy Drupal 6 and Drupal 7) to the latest stable release. I will also publish articles here on how to update contributed modules for Drupal.
Endless support for CKEditor 4 in Drupal
The Drupal CKEditor module is ending support for CKEditor 4. However, you still have the option to connect CKEditor 4 through custom modules and continue using it. Of course, using the new CKEditor 5 or later is preferable, but the legacy CKEditor module is still used by more than 140,000 sites (every fourth Drupal site!):
Using Chat GPT to rewrite javascript code without jQuery
Prompt for ChatGPT to Rewrite jQuery to JavaScript
If you want to rewrite jQuery code into pure JavaScript using ChatGPT, navigate to chat.openai.com and enter the following clear, concise prompt:
Please rewrite the following jQuery code into vanilla JavaScript, maintaining the same functionality. Ensure compatibility with modern JavaScript standards (ES6+). Also, include usage of Drupal.behaviors if applicable. [Paste your jQuery code here]
Drush shows error: Support bash to support 'source' with fallback on $0 if this does not run with bash
I have huge number of configs and run usually config import with php -d memory_limit=-1 (disable memory limit for PHP):
php -d memory_limit=-1 ./vendor/bin/drush config-import -y
But this time I got an error:
Additional materials for PHP lessons
This section will contain additional materials on the lessons, an introduction to php, various facts about php and something else.