Drupal 8: Ajax in Forms

Drupal Form Ajax Example

Why reload the whole page, when you can just update certain parts of the DOM? Ajax allows you to do just this, to dynamically update content. Just one of the many great uses of Ajax is Form Validation. In this example, we will see how to implement this.

Continue reading Drupal 8: Ajax in Forms

Drupal 8: RDF UI (Schema.org Mappings)

RDF UI is a module for Drupal 8 created by Sachini Aparna Herath for her Google Summer of Code 2014 project. RDF stands for Resource Description Framework; it provides a standardized model for data interchange. This module enables you to easily create mappings of Schema.org Things to Drupal Content Types and Fields. RDF UI will embed these specified mappings in the HTML as RDFa once your content is published. This blog post was made for Google Code-In 2014 to test and review RDF UI.

Continue reading Drupal 8: RDF UI (Schema.org Mappings)

Drupal 8: Load Balancing with HAProxy

As your website grows, there will be a point when there are more people accessing your web server than possible for a single server to handle. This is when load balancing will become a critical step in your Drupal setup. Load balancing increases reliability of your application in case a web server goes down and spreads the load across multiple web servers. In this tutorial, we are going to use HAProxy as a Layer 4 Load Balancer for our Drupal website. We will have a proxy server, two web servers, and one database server, all running on Ubuntu 14.04 LTS (Trusty Tahr) 32-bit.

Load Balancing Diagram 2

The public will be able to access the proxy server; this server will then use an algorithm to redirect the user to a web server which will access the database server if needed and respond with generated web page or content requested.

In a production environment, there would be separate physical servers for each proxy, web, and database. However, for the sake of simplicity and availability, I will be using virtual machines.

Continue reading Drupal 8: Load Balancing with HAProxy

Drupal FluxKraft: FluxPocket – Pocket Service

FluxPocket is a module created by Umar Ahmad for the FluxKraft distribution of Drupal. FluxKraft is an easy tool you can use for self-hosted, social automation. However, it does not support Pocket by default.  As a result, Umar Ahmad made the FluxKraft module as part of his Google Summer of Code 2014 project. This blog post was made for Google Code-In 2014 to test and review FluxPocket.

Continue reading Drupal FluxKraft: FluxPocket – Pocket Service

Drupal 7: Drupalgeddon Exploit

Drupal faced one of its biggest security vulnerabilities recently. It was so bad, it was dubbed “Drupalgeddon”. It affected every single site that was running Drupal 7.31 (latest at the time) or below, as you can read in this Security Advisory.

Continue reading Drupal 7: Drupalgeddon Exploit

Drupal 8: Entity Embed Module

Entity Embed is a module created for Drupal 8 by Chandan Singh for his Google Summer of Code 2014 project. It allows you to embed any type of entity such as Content, Comment, and Role. This blog post was made for Google Code-In 2014 to test and review Entity Embed.

Continue reading Drupal 8: Entity Embed Module

Drupal 8: Setting Up Multi-site

There is an incredibly easy way to create multiple Drupal sites. You don’t need to duplicate the code. You can have multiple sites, with different content, users, and themes since each site can use a different database. They will all run on a single codebase and will be able to share modules. This is one of Drupal’s greatest features called Multi-site. It was first implemented in Drupal 4, and it is here now in Drupal 8.

Continue reading Drupal 8: Setting Up Multi-site

Drupal: Using SimplyTest.Me

SimplyTest.Me is an easy tool, made by Patrick Drotleff, you can use to “Simply Test” any Drupal Distribution, Module, or Theme. As you may know it takes several minutes to set up a local Drupal installation, you may even encounter problems. Instead, you can use SimplyTest.Me which has many benefits over setting up a local install of Drupal for testing purposes:

  1. Speed: All it takes is a few clicks here and there, and you will have your Drupal install ready in less than 2 minutes.
  2. Experimenting: You can quickly try out any distribution, module, or theme to see if you actually want to use it in your main Drupal installation.
  3. Reliability: If your local web development server is having issues, no worries, SimplyTest.Me will be available online to use at any time.
  4. Mobility: Not at your local development machine? You can test Drupal on just about every computer with internet access.
  5. Testing: Under the Advanced Options, you can link to a patch. This patch will automatically be applied to the Drupal install. This makes it much easier to review patches.

 

Note: All Drupal sandboxes are temporary and will have a time limit of 30 minutes.

This blog post was created with a video, for GCI, to explain the benefits of using SimplyTest.Me over a local install of Drupal.

Create A Spinning Gif Image in Adobe Photoshop

Did you know you can use the new timeline feature to easily create spinning .gif images? This is pretty useful for AJAX loaders, and here is a simple way to create it.

What We Will Be Creating

Spinning-Gif

Continue reading Create A Spinning Gif Image in Adobe Photoshop

Welcome to My New Website

I decided to stop the Akshay Productions website, thus I have created this site. I will be posting new posts, software, everything else here from now on.