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.

A quick trip to Sinhagad

Posted on 30 Jul 2012 by Amitav Roy

A sudden plan to Sinhagad near Pune – an amazing destination for a single day trip. A place full of for and lush green mountains, it’s a must nature lovers and trekkers.

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.

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.