Drupal

Security Hardening - Nginx Response Headers

By Karthik Kumar D K on 20th Jun 2021
Now-a-days, web based attacks are one of the most common types of cybercrime, and in most cases, the attacked protocol is the HTTP, while the component that receives the attacks is the web server. Hardening Nginx HTTP headers becomes necessary for reducing any attacks to the web server. And how to harden Nginx response HTTP headers? - HTTP headers are pieces of info

Drupal 7 to Drupal 8/9 Audits

By Karthik Kumar D K on 24th Apr 2021
Migration from Drupal 7 to Drupal 8/9 is more of a re-build than a simple upgrade. We can move the content. users and other configuration with the help of core system, But still their will be a need to re-write custom modules or themes and some times contrib ones as well. By having a list which helps us to Audit any D7 Project to Drupal 8/9 migration would help start quick.

Drupal JSON API, Deep Dive - Part 2

By Karthik Kumar D K on 28th Mar 2021
In Part 2, Let's see about the Core concepts like Types, URL structure, HTTP methods, Request headers, Response codes and Document structure i.e Data in the request body. JSON:API module will provide the APIs for Drupal entity types and bundles, where every bundle will have its own unique url path, which will have a shared pattern. Types

Monitoring Web Application with ELK Stack

By Karthik Kumar D K on 19th Mar 2021
For Auditing & Troubleshooting issues in an application, log data is very useful. And to make it easy to read the log data via some kind of tool will make developers & maintainers happy. However, not all the log data for any event is not needed to be stored in the log record. Means, Each log record should have only the information needed for further notice or further debugging. Strictly all sensit

Drupal JSON API, Deep Dive - Part 1

By Karthik Kumar D K on 18th Mar 2021
JSON:API module is implemented based on JSON:API Specification. Means, a specification that says how client should request the resources to be fetched or modified, & also how server should respond to such requests. This JSON:API is designed to minimize the number of requests and also minimize the amount of data transmitted between clients & servers. And such efficiency is achieved without compromi

Send Mail with Custom Email Template & with Dynamic values via Drupal Mail Service

By Karthik Kumar D K on 20th Jan 2021
Sending an email works with defining an email template (subject, text and possibly email headers) and the replacement values to use in the appropriate places in the template. Processed email templates are requested from hook_mail() from the module sending the email. Any module can modify the composed email message array using hook_mail_alter(). Finally \Drupal::service('plugin.manager.mail')->mail

API Docs Drupal Module simple way to show OAS Docs on Drupal Portal

By Karthik Kumar D K on 16th Jan 2021
If you want to show API Documents on your Drupal Portal and you want to do it do it quickly, Here's the module API Docs which solves your purpose. API Docs is a simple module which will will provide a content type for the API Doc and User will be able to create API Documents by just uploading Open API Spec. Each API Doc is a content with this API Docs module. Prereq

Drupal JSON:API GET, POST, PATCH and DELETE Samples

By Karthik Kumar D K on 11th Nov 2019
The API that the JSON:API module makes available is centered on Drupal's entity types and bundles. Every bundle receives its own, unique URL path, which all follow a shared pattern HTTP Methods JSON:API specifies what HTTP Methods to accept. Those are: GET, POST, PATCH, and DELETE. Notably, PUT is not included.

Cache Set, Get and Invalidate per User in Drupal 7

By Karthik Kumar D K on 26th Jun 2019
How to Set, Get and Invalidate the caches per user in Drupal 7, this blog article will explain a brief of how to do such implementation on Drupal using the default drupal cache functions. Here, we go with the steps Initially, create the custom functions for Get, Set and Invalidate the caches per us

Store Drupal logs on Amazon S3

By Karthik Kumar D K on 24th Jun 2019
Store Drupal logs on Amazon S3 via hook_watchdog, so that you can get rid of heavy logs on your drupal database and can later read from the S3. For this todo on Drupal You should use the "hook_watchdog" hook, where this hook allows modules to route log events to custom destinations.

Sites Still Vulnerable to Drupalgeddon 2

By Karthik Kumar D K on 27th Jun 2018
Attackers are exploiting Drupalgeddon 2 critical vulnerability in Drupal to compromise systems & secretly turn them into malicious cryptocurrency mining machines like cryptojacking malware, mine for Monero. The only side effects a victim might notice is that their system is running slower or doing more work than usual. Still most of t

Secure Website running on Apache with Let's Encrypt on Linux

By Karthik Kumar D K on 1st Feb 2018
Website security is generally most complicated and expensive task for every Linux admin. Let's Encrypt is a free, automated, and open certificate authority that provides free X.509 certificates for Transport Layer Security encryption via an automated process. It's very complex process to install and add SSL certificate to a web server. Let's make it easier with the

Aegir on Docker - Develop, Test, With Easier Deployment

By Karthik Kumar D K on 3rd Sep 2017
Aegir with Docker would be one of the brilliant option for Better Drupal Development and Faster Deployments. Docker, which solves the overhead of virtualization layer. And Aegir, which gives the best possible approach for Drupal Multisite hosting. Here you go??? Better Task Queue..! This process is usua

Integrating Codeception with Drupal to have added support for TDD

By Karthik Kumar D K on 26th Mar 2017
Getting Codeception into Drupal, will have added support for Test Driven Development.. Specifically in having the Acceptance Tests in the project.. Since Test Driven Development would be one the most integral part of the project.. And also internal team and vendor team would be having more confidence in the version releases of their project.. one can prefer TDD. Tes

Creating a Twitter Share block programmatically in Drupal 8

By Karthik Kumar D K on 14th Mar 2017
How to Create a Twitter Share block programmatically in Drupal 8. Which includes few minor stuff like Accessing the Current Node data in Block. How do we create the link programmatically. Disable cache for particular block.

Auto Tagging of Taxonomy terms in Drupal7

By Karthik Kumar D K on 27th Sep 2015
This article help you to create the way to implement the autotagging of the taxonomy terms based on the other field of the node page. This can be implemented by using the hook_node_presave(). In our case lets consider the field_tags is the taxonomy field, and we are autotagging based on the content present in title and body fields. Al

Configuring & Debugging Drupal 7 on PHPStorm with XDebug on Ubuntu14

By Karthik Kumar D K on 26th Aug 2015
Debugging the code is one of the important process for a developer, So now this article will help you to configure the Phpstorm for debugging the Drupal 7 application with the help of xDebug. The configuration made in this article refers specifically to the Ubuntu machine, which has Apache2 webserver running and xDebug installed. Initally open terminal, and check th

Custom Batch processing in Drupal 7 to update Nodes - Batch API

By Karthik Kumar D K on 17th Aug 2015
Drupal's batch API processing is very nice and provides few benifits, We can break long tasks into smaller batches, and by this we will be able to prevent maximum execution time errors. This article will show how to Build a batch routine in a custom module, its more straight forward approach, you can follow up below code, which is been explained with required comments. Create your custom module, w

Drupal7 Simple Test case in Custom Module

By Karthik Kumar D K on 12th Jul 2015
Why to write test case? Very simple, in one word, Its waste of time and effort of checking something we changed in code and that effects other part, and to make sure every time what change we make that should not effect any other code, so this task can be done by our test cases In this article, giving a simple test example to create a drupal test case

Filter content between Date ranges in Drupal 7

By Karthik Kumar D K on 11th Jul 2015
It is tempting to believe that using the "is between" on a date fields will work. However, this option is used only in the case of events "Starting" on a range of date. This tutorial requires that you already have a content type with a date field . It is not necessary to have two fields to adjust an "end date" for the event, only a date field with the "Collect an en

Create Related Content of Different Content Types through Taxonomy in Drupal7

By Karthik Kumar D K on 11th Jul 2015
Step 1 Create a Taxonomy term field for the content type, In this article lets take example for Basic Page content type as shown in the below image. with the Autocomplete selected as settings of the term reference field. Step 2 And next create/resue the Taxonomy term field for the other content type, In this article lets take example

Drupal Multisite development environment Configuration in Ubuntu14

By Karthik Kumar D K on 8th Jul 2015
Prerequisite Requires a working drupal installation Set up your hosts file Add the following lines to /etc/hosts: 127.0.0.1 testsite.localhost 127.0.0.1 testsite2.localhost Set up Virtual Hosts Add the following code to /etc/apache2/sites-available: Goto to the fold
Showing articles of label Drupal. Show all articles
Scroll to Top
We Need Your Consent
By clicking “I Accept Cookies”, you agree to the storing of cookies on your device to enhance site navigation & analyze site usage.
I Accept Cookies