Amitav Roy

Blog on web and travel

Creating blocks through modules using hook_block_info

Posted on 20 Jun 2012 by Amitav Roy

Time and again we come across requirements where we need to create a block through modules with custom functionality like a custom slider. So, in this tutorial, I will show you how to use hook_block_info and a few other hooks to create a custom block.

Adding a custom widget inside a node using hook_node_view

Posted on 1 May 2012 by Amitav Roy

In this tutorial, we will see how we can create our custom widget using drupal’s hook_theme and then add into Drupal’s $content available in the node tpl. The main aim is to get the widget across all the content type without adding any code to the tpl.

Trip to Hampi, Karnataka – The lost empire

Posted on 6 Apr 2012 by Amitav Roy

With a four day holiday for holi, it was a perfect time to make a small trip to someplace. The conditions: It should not be very far and it should be interesting from the photography point of view. A little bit of Google and we came up with quite a few options. But in the end, it was Hampi I and my wife decided.

Canonical links and Drupal 7

Posted on 5 Apr 2012 by Amitav Roy

Recently when I was reading about canonical links and its support with Drupal 7, and I was really happy to see that as always Drupal handles these issues perfectly (rather almost perfectly) out of the box.

Codeigniter jQuery graphs from PHP data

Posted on 7 Feb 2012 by Amitav Roy

This time I will show you some UI goodies using my favourite jQuery. With highly interactive web applications, graphs are must for any application, and jQuery is just the right tool for this.

Codeigniter jQuery and Ajax

Posted on 22 Jan 2012 by Amitav Roy

In this tutorial, I will show you how to use the jQuery and Ajax inside the Code Igniter framework. We will create a page where we will create a drop down of states coming from the database. And once a state is selected, the list of cities will come through Ajax.

Codeigniter tutorial: Quick and easy – Part 1

Posted on 16 Dec 2011 by Amitav Roy

CodeIgniter is one of the easiest of all the PHP framework available and definitely it is one of the most well documented one compared to a few other famous frameworks. It has a huge list of helper functions and a big library of useful features. In this Codeigniter tutorial, we will see some basic setup required for the framework before starting the development. So, let’s dive in and check out how this framework works.