New Drupal module: checkpost
abhai
12 January 2022
How to setup drush aliases for your Drupal 8/9 website
abhai
13 October 2021
Drush is the CLI tool for managing Drupal projects. 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.
What are shut down functions in php?
abhai
3 September 2021
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.
How to redirect anonymous users to login page?
abhai
3 September 2021
All you have to do is intercept every request, check if it is authenticated user and if not redirect to login page. There is an Event that is fired on every request, we need to subscribe to that event.
New Drupal 8/9 module: Dopup
abhai
4 October 2020
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
abhai
21 September 2020
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.
How to upgrade your Drupal 8 site to Drupal 9
abhai
7 September 2020
Upgrading a Drupal 8 site to Drupal 9. Follow the blog written by Dries on Drupal.org: https://www.drupal.org/docs/upgrading-drupal/upgrading-from-drupal-8-to-drupal-9-or-higher to easily upgrade.
How to run Behat test automation for Drupal on Lando using Acquia BLT
abhai
7 September 2020
Things to remember when you change the domain name of your Drupal website
abhai
7 September 2020
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
abhai
15 March 2020
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.