Drupal
Drupal 7: How to add a custom CSS class to the last search result item on the search page
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:
- Override template_preprocess_search_results
Here is how to alter the code. This goes in your template.php:
function yourthemename_preprocess_search_results(&$variables) {
$variables['search_results'] = '';
if (!empty($variables['module'])) {
Drupal 7: How to add a custom node view and force a node template to use it
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:
-
/**
* 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!
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
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.
I apologize for not being able to finish the presentation on time. One hour is just too little to get me going on about Drupal. :)
ttcs_drupal_presentation.odp [ 4.9 MB ]
ttcs_drupal_presentation.pdf [ 3.2 MB ]
Drupalcon Paris - Short Post Mortem


I have had the pleasure of obtaining a Drupalcon scholarship to attend the Drupalcon held in Paris in September 2009. View my profile.
Arriving in Paris was no different as seen on TV. Big city, taxis, metros, Eiffel Tower, street-side tables for two, random couples making out everywhere....yeah just as expected from when I last visited 12 years ago in 1997.
At the actual conference I helped out at the registration desk. Let me tell you, I believe I held a passport/ID from every single continent/country...some I did not even recognise.
South West Regional Health Authority - now using Drupal!
The South West Regional Health Authority is now using Drupal.
Some of the requirements were an easy-to-use content management system where users of the SWRHA can easily update the pages themselves and add/edit new content. The users skills would range from no technical experience to minimal XHTML knowledge.
Farewell Drupalcon DC

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.
Drupalcon DC - 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.
Hello Washington! See you at Drupalcon DC 2009!
This semester, Drupalcon will be held in Washington DC. In case you don't know or you live under a rock, Drupalcon is THE event for Drupal developers. Right now, its sold out with 1400+ Drupal enthusiasts converging under one roof.
This is my first ever Drupalcon (and certainly will not be my last ever!). I am so anxious to meet fellow Drupal developers and finally put a name to their Drupal ID or IRC nick. It's so weird...you collaborate with these guys/girls all the time and yet I have never met them.
I am really looking forward to attending the keynote session by Dries Buytaert, the original creator and project lead of Drupal.
Trinidad & Tobago Linux Users Group - now using Drupal!

The Trinidad and Tobago Linux Users Group (TTLUG) is now using Drupal. Well seeing that I promised to have a website up and running after becoming President of the TTLUG, this was the least I could do on my own company's time.
It took me about 8 straight hours to set everything up from scratch. This 8 hours involved transferring nameservers, setting up hosting account, setting up Drupal, installing some modules, picking a theme, troubleshooting OpenID and creating some content to get things going....oh yeah somewhere in between I watched an episode of Scrubs, opps my bad.

