Drupal

Custom webform submit handler

Overview In Drupal, a Webform handler is a component of the Webform module that processes form submissions. Webform handlers allow developers to extend the functionality of webforms by performing various actions or integrations upon form submission. Processing Form Submissions When a user submits a webform, the form data is passed through a series of handlers, […]

Drupal

Custom Service for Youtube URL in Drupal 8, 9, 10

Overview When working with YouTube video integration in Drupal, you often come across which proper YouTube URL we use in our application for playing videos. Sometimes, a few URLs worked on a few browsers, and some didn’t. However, to overcome this kind of problem, we already have a contributed module in Drupal named YouTube Field, […]

Shubham Joshi
Shubham Joshi
Read

Drupal

How to create dependent fields in Paragraph Entity using hooks in Drupal 9 & 10

Introduction When working with complex forms, you often have fields whose state depends on the input values of other fields in the form. For example, you might have a select list of options, the options for which depend upon the value selected for another field. In this blog, I present one case study of my […]

Shubham Joshi
Shubham Joshi
Read

Drupal

Custom Drush Command to import all .po files

The main purpose of this blog is to create a custom command to import all .po files. In one step  Portable Object (.po) file is used for localization and content translation. Let’s start the creation of a custom drush command to import .po files: Step 1.  Create Module Create a .info.yml file name: Custom Drush […]

Drupal

Make Your Drupal 9 CKEditor Pop – 4 Useful Modules You Didn’t Know Existed

The most important CMS feature is actually the content editor. Additionally, Drupal has significantly improved its content management capabilities with various new features for Drupal 8/9, including the CKEditor widget system and the Advanced Content Filter (ACF), thanks to the powerhouse that is CKEditor as its default rich text editing tool. So, yes, even with […]

Drupal

Migrate Data from online XML to Drupal 9

The Migrate API provides various services for migrating data from different sources to Drupal 9 (or later). Today we are going to learn how to migrate data from online xml file to our site of Drupal 9. The prerequisite contrib modules are : Migrate Plus, Migrate Tools, Migrate. For setting up folder structure and creating […]

Drupal

Add inline Javascript code in Drupal 9

In our Drupal projects, we have requirements to add some kind of inline javascript code, like adding GTM script. This can be in the page header or page bottom as per requirements. So in the blog, we will see how we can achieve this by both methods. Drupal provides hooks to do this in a […]

Drupal

Cache Lifecycle in Drupal 9

Cache Life cycle is important to understand as it plays an important role in optimizing the performance and scalability of web applications. In this blog, I will dive deep into the cache life cycle in Drupal 9, exploring its key stages and highlighting best practices to maximize caching benefits. Various Stages are as follows:- ● […]

Drupal

Custom table migration from Drupal 7 to 8

Custom table migration is slightly different from Content migration. We can migrate Custom table data from Drupal 7 to 8 by using simple steps. Before discussing those steps, we should know which modules are necessary to migrate data. Necessary modules Migrate Migrate Drupal Migrate Drupal UI Migrate Plus Migrate Tools Drupal Upgrade We can use […]