Amitav Roy

Blog on web and travel

Creating Drupal forms, tabs and vertical tabs using Form API

Posted on 6 Aug 2012 by Amitav Roy

Sites are easy to create using Drupal CMS. But giving nice forms which client can use and set different things on the site will really make our life a lot easy. In this tutorial, I will show how we would use the Forms API and Vertical tabs to create pages in the admin section.

Codeigniter getting ajax data using views

Posted on 7 Jul 2012 by Amitav Roy

Getting data through Ajax is very cool, and when we can reuse the CodeIgniter views to get the Ajax data, the overall user experience becomes much more enhanced. So, in this tutorial, I would show you how I have used a CodeIgniter view and Ajax to filter data.

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.

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.