sharique's blog

Configure Atom editor for Drupal development

Atom editor (or just Atom) is free and open source text and code editor build by GitHub. It is build using Chromium, nodejs, CoffeScript and Less. There are few other editors build using nodejs, second most popular project is Brackets. I've tried both and found Atom stable among two. Another advantage Atom has more plugins than Brackets. Recently I'm started to using it as alternate for Sublime Text.
It has many plugin for Drupal also. I'm using following plugins

Using disqus for comments on the site

Few months back I started using disqus commenting system on my site, so far my experience is good. Disqus is very is easy in install and configure. Download and install disqus module from enable it, get api key for your site from and that's it.
For end user the biggest advantage it that you don't have to create separate account for each site, you can comment using existing disqus account. It really save a lot of time for end user as well.

How I do the development setup

In the following blog post I'm going to tell you how I set up my development environment. I hope people will find it useful.

Currently my work is mostly focused on drupal, but I've worked with C++, C# and First I'm going to tell you about general setup which is common for all technologies, after that I'll tell you about items specific to technologies.

Installing drush 7 in windows

Drush team recently released rc1 for version 7 of Drush, in this release they added a nice batch script to install it on windows. For this you have download latest 7.x release from, extract zip in a partition other than OS partition (like D drive, I extracted it in D:\install\). Now start command prompt as administrator, for this search for cmd in start menu, on result list right click on cmd and choose "Run as Administrator".

Drush 7 installation script

To work with Drupal 8, we need Drush 7, which is in alpha stage of development. So there no package available for distribution (like Ubuntu, OpenSuse). Installation of Drush 7 is not as simple Drush 6, if you not familiar with composer, you may find it difficult to install, so I've written a shell script, which can be used to install Drush 7.

This script install drush 7 for normal user, you don't need root access to run it.

Creating a custom block in Drupal 8

Block is a very basic building block of any site. Blocks in drupal 8 are very different from what we are using in d7. In D8 blocks are plugins (like ctool content type plugin) and also entity. One more major improvement from site builder is that now you can have more than one instance of a block on same page, all instances can have different configuration, which was nightmare in d7. In d7 to achieve this you have to use either use panels or delta + context modules. Even in this way you can’t have different configuration for each instance.

Subscribe to RSS - sharique's blog