Drupal

Upgrading from Drupal 5 to 7 and the XML Sitemap Module

  • Posted on: 17 December 2013
  • By: shivanj

After months of deliberation and procrastination, I have finally found the time to upgrade my own website. It's now running on Drupal 7.

I decided to change the theme and keep it simple. A neat layout and also mobile friendly theme is what I was aiming for. Thanks to the many contributors at Drupal, finding a user contributed simple and clean theme was not very hard at all.

Annoying Drupal 5/6 problem. Can't sign in even if your username/password is correct.

  • Posted on: 3 December 2013
  • By: shivanj

If you still happen to be maintaining a Drupal 5 or 6 website for a client you may encounter this problem of getting access denied even though you correctly entering the right username and password.

The first place to check, (and this is the most common solution), is to check the Sessions table in your mySQL database. Try repairing this table and that should do the trick.

An easy way to do this is to use PHPMyAdmin.

Drupal 7: How to add a custom CSS class to the last search result item on the search page

  • Posted on: 14 November 2012
  • By: shivanj

This is a small tidbit of information in the event that you wanted to alter the Drupal search results page. You can add a custom CSS class to the last search result item (for whatever reason you may have). In my case, I wanted to remove the border-bottom from the last result, so I had to add a special CSS class to do this.

Just follow these simple steps:

  1. Override template_preprocess_search_results

Drupal 7: How to add a custom node view and force a node template to use it

  • Posted on: 15 October 2012
  • By: shivanj

This is a small Drupal 7 tip if you wanted to create a custom node view and force a node template to use this custom node view.

Use case

Let's say you are creating a custom node template for a node of type "grades". You may need to show/hide specific fields in your content type for your Grades template. (This is just an example but you can use this tip in various ways).

The Steps

    You can create a new view mode by putting this code into your custom module:

  1. /**
    * Implements hook_entity_info_alter().
    */
    function MYMODULE_entity_info_alter(&$entity_info) {
    $entity_info['node']['view modes']['custom_teaser'] = array(
    'label' => t('Your Custom Teaser'),
    'custom settings' => TRUE,
    );
    }

Trinidad Guardian's Main Stage launched using Drupal!

  • Posted on: 4 February 2010
  • By: shivanj

Main Stage

A few days ago, the Trinidad Guardian's Main Stage was launched.

Without a doubt, the website runs on the very powerful cutting edge content management system, Drupal 6.

The design was done in-house at The Guardian (provided as a template) and some features used are the jQuery powered photo galleries.

A gallery is considered a "node" which can contain multiple images, all of which are seamlessly uploaded through the web interface of the same website.

Leveraging the Drupal Content Management System

  • Posted on: 4 October 2009
  • By: shivanj

This is my presentation for the event: "Building with Open Source: For Developers", and was presented today for the Trinidad and Tobago Computer Society Software Freedom Day events.

Comments and questions are welcome.

This work is licensed under a Creative Commons Attribution-Share Alike 3.0 Unported License.

It is available in the OpenOffice format (naturally) and as a pdf.

Farewell Drupalcon DC

  • Posted on: 12 March 2009
  • By: shivanj

drupalcon
Well that was certainly one of my greatest experiences ever! To all the 29+ organisers, and the Drupal Association, a big hefty CONGRATULATIONS and job well done on hosting a perfect conference. I mean, I expected it to be a good conference, but damnnn, it was far greater than my expectations. I think it was rumoured that this was one of the biggest and most successful Drupalcons ever. Certainly the biggest.

I am certainly looking forward to Drupalcon Paris, although I am not sure if that is financially possible as yet. Time will tell.

Drupalcon DC - Day 1

  • Posted on: 5 March 2009
  • By: shivanj

Drupalcon Day 1
Wednesday March 4th - Day 1 of Drupalcon and I already feel like I have been here a week! That's because I attended seven (7) full sessions back to back. There was so much information to absorb, so many great people to meet and so much needs being satisfied. Dries' keynote speech was invigorating as was expected. He touched on showing pictures of one of the very first Drupalcons ever with an average turnout of about 30 people. Today, it's a whopping 1400+!! Three meetings rooms were joined together, 3 big white screens and over one thousand people jam packed into the room. It's amazing the wireless network didn't crumble.

Pages