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...

by radheshyam.kumawat
Tag: Drupal 9
02-Feb-2024

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, which...

by shubham.joshi
Tag: Drupal 9
28-Jan-2024

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 Drupal project where I had to...

by shubham.joshi
Tag: Drupal 9
24-Dec-2023

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 type: module ...

by yogendra.singh
Tag: Drupal 9
30-Jul-2023

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...

by kartik.tandon
Tag: Drupal 9
22-Jun-2023

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 migration...

by sagar.verma
Tag: Drupal 9
27-May-2023

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 proper way. To add the inline javascript code in...

by priya.chowdhury
Tag: Drupal 9
26-May-2023

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:- ●...

by sagar.verma
Tag: Drupal 9
22-May-2023

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...

by yogesh.singh
Tag: Drupal 9
26-Dec-2022

Drupal

Drupal 9/ Drupal 8 Custom Migration From CMS

What is Migration? Migration is an Extract, Transform, Load (ETL) process. Inside Drupal Migrate API, the extract phase is called source, the transform phase is called process, and the load phase is called destination. Before Understanding how to do custom migration, it is important to understand why to perform the custom migration....

by sagar.verma
Tag: Drupal 9
05-Dec-2022

Drupal

Progressive Web App (PWA) In Drupal

Introduction A contributed module for Drupal provides a drop-in replacement for the fundamental characteristics of a Progressive Web App, which has been available since Drupal 7. With the help of this module, your website will be able to respond swiftly to user interactions, never display an "offline" notice, and look exactly like a...

by kartik.tandon
Tag: Drupal 9
02-Dec-2022

Drupal

Password Migration in Drupal 9 from Drupal 7, WordPress, and Custom CMS

Password migration is basically part of website migration. We can migrate content, images, documents, categories, and other content very easily because these are almost straightforward. In migration, We pick the content from the source and put it into a destination which is called the lift-and-shift approach. In Drupal 9, Password...

by Jeet Lal
Tag: Drupal 9
22-Nov-2022