Sorry, you need to enable JavaScript to visit this website.

Drupal

How to setup drush aliases for your Drupal 8/9 website

Submitted by abhaisasidharan on Wed, 10/13/2021 - 15:58

Firstly, make sure you have ssh access to the server (dev, test and/or prod). Your ssh command looks something like this: ssh user@your-website.com or ssh user@100.230.222.122. Drush alias works by using this username and domain/ip address combination to login to the server and execute the command and then return back to your command line. In your project root, create a drush folder and inside it, create a sites folder. Now you put your site alias config in that folder.

What are shut down functions in php?

Submitted by abhaisasidharan on Fri, 09/03/2021 - 10:43

Shutdown functions are functions that are executed after the current scope has been "shutdown". Say, you want to run a function after another function has completed execution, then this is the way to go. It is also a way to make PHP web requests somewhat asynchronous. In a Drupal context, say you are sending a request, that triggers a function. But you do not want to wait for the response or you want the function to start executing after the request has returned a response.

New Drupal 8/9 module: Dopup

Submitted by abhaisasidharan on Sun, 10/04/2020 - 03:55
Dopup
Dopup
This module provides simple popup block like that of sumo.me. Sometimes we need to display popup blocks which interacts with the user. Example, Get a Quote, Newsletter subscription forms. Using this module, the user can and their webforms to a block which is a popup and style it as well. After this, the user can specify when to display the popup to the user. Example, 5 seconds after the user is on the page, when the user scrolls to 50% of page and so on. The user can also add custom styles to the block.

A simple and fast Headless Drupal 8 solution: Acephalous

Submitted by abhaisasidharan on Mon, 09/21/2020 - 10:20
Headless Drupal Angular Acephalous
Headless Drupal Angular Acephalous
An API first distribution and a responsive Angular Single Page App using Angular material. Acephalous provides an Angular front-end and an API first Drupal back-end. Routing has been made simpler here by using the same routes from Drupal rather than re-inventing the wheel. Routing takes place in the Routing component in the Angular Single Page App. The purpose of this distribution is to create a fast, secure and small front end application while keeping all the Drupal 8 goodness like SEO, responsive images, routing, multilingual, easy content authoring, views. Basically Drupal acts like an smart content source and a JavaScript framework renders it.

Things to remember when you change the domain name of your Drupal website

Submitted by abhaisasidharan on Mon, 09/07/2020 - 06:09
New domains
New domains
As you may have noticed, my domain name is now abh.ai. I've been wanting to change my domain name for some time now, for many reasons. People are often surprised that .xyz is a legitimate domain name despite abc.xyz. Plus, If it weren't for my friends, this change would never have happened. They, very astutely, pointed out that it sounds like the domain name of a porn site.

Headless (decoupled) Drupal using Drupal 8 and angular 6

Submitted by abhaisasidharan on Sun, 03/15/2020 - 06:07
Headless Drupal
Headless Drupal
Headless Drupal or decoupled Drupal is when you use Drupal only as a storage for content and a frontend that gets the data from the Drupal backend via an API. The front end is usually a JavaScript framework like Angular or Vue. In this example, we use Angular 6 as a front end and we open up my website www.abhaisasidharan.xyz available as JSON objects via an API. This enabled me to create an Angular Single Page Application which pulls content from abhaisasidharan.xyz.