Drupal Custom Pager navigation

Submitted by Janak on Thu, 10/22/2009 - 12:13

For my portfolio site I wanted each image node (CCK + imagefield) to have a thumbnail strip of 10 or so images from the same category. Very simple stuff I thought. A quick search and I came across fantastic module called Custom Pagers by Eaton. This highly flexible module provides you a Next and Previous custom pager that you can display in your node pages.

Drupal 5: Add Google Lead Conversion Tracking to registration page

Submitted by Janak on Wed, 09/09/2009 - 12:56

Ever wanted to alter the the registration page in Drupal 5 to add your own bit of custom code or text? For most of the work websites, we use adwords to bring in traffic and as with any campaign, you would want to monitor the success rate etc.

We needed to add a bit of Google lead conversion tracking code (javascript+html) on the website registration page.

Exporting, importing and merging EXIF data among images

Submitted by Janak on Fri, 08/14/2009 - 11:06

Ever felt the need to display EXIF data for your images but wanted to optimise the image for web as well? Photoshop by default strips out any EXIF data when exporting for web. So, how do we go about it? easy...

  • Optimise (save for web) your image as normal using the photo application of your choice and save it as a new image (we need the original for EXIF data).
  • Install ExifTool
  • Using Nano (Syntax Highlight) for Drupal Module development

    Submitted by Janak on Thu, 08/06/2009 - 12:10

    I mostly use Eclipse IDE as my main development environment for Drupal, but have got into the habit of using nano (in emergency situations) to patch and edit my Drupal modules. Often I find it frustrating to with with nano without any kind of syntax highlighting, specially when trying to scan through a big module. A little googling around and I found a way to enable PHP syntax highlighting for nano (rather simple):

    Adding Meta Tags to taxonomy_term override view with Pathauto, Nodewords and Views

    Submitted by Janak on Mon, 08/03/2009 - 13:11

    If you are using the wonderful Views module to override the default taxonomy_term pages, you will have noticed that it no longer displays the meta data defined for the term. This is due to the way nodewords handles Views and Taxonomy. It has no way of knowing that we are overriding the taxonomy term page so it can display the term data correctly.

    Free Hotmail POP3 on iPhone

    Submitted by Janak on Mon, 07/27/2009 - 10:51

    It seems back in January this year Microsoft decided it was about time to allow free POP3 access to free Hotmail accounts. In the past this feature was only available to paid users. Yes, although I do not use hotmail account for anything important other than using it for signing up for random/unimportant websites, it is still very handy to have POP3 access even it is for downloading your spam messages.

    Drupal development with OSX, VMWare Fusion and CentOS 5.3

    Submitted by Janak on Wed, 07/15/2009 - 16:05

    CentOS powers my personal websites and since it is based on RedHat Enterprise Linux (which we use at work) it makes my life easier when jumping back and forth between servers as all the filepaths are same, repositories and packages are all consistent. All in perfect harmony as far as work and personal web server are concerned.

    Drupal 6 SEO: Improve SEO and Page Rank by preventing Link Juice Drain

    Submitted by Janak on Fri, 06/26/2009 - 12:56

    As anyone paying a close attention to their Page Rank and SEO will already know this, too many outbound links from your webpage can drain the "Link Juice" of your webpage andcan hamper the Page Rank and SEO value of your website. This is especially true when you are displaying hundreds of comments on the same page and each comment links to the user homepage (which may be offtopic).

    Drupal 6: Setting custom breadcrumb and primary navigation to active for any page

    Submitted by Janak on Wed, 06/24/2009 - 16:06

    Ever wanted to set adhock breadcrumbs for pages that were not really part of any logical menu structure? Also want to activate the primary menu for this ad hoc page?

    Drupal 6 makes this easy....

    In the rough example below, you can see how I go about setting a custom breadcrumb for taxonomy terms pages without hacking around the drupal core and without installing bunch of additional modules.