Theming

Aug 18 2010

Screencast: Adding CSS Suckerfish Drop Down Menus to a Drupal 6 Theme

In this video, I demonstrate how to add CSS Suckerfish Drop Down Menus to an existing Drupal 6 Theme.

NOTE: On an iPad or other mobile device and cannot see this video: try the direct link: http://vimeo.com/14254948


Aug 2 2010

From Joomla to Drupal: One Year Later, a Switcher’s Tale (part one)

This is part one in a series where I discuss switching from Joomla to Drupal, my experiences after almost one year of intense Drupal development. For those who don't know, Joomla and Drupal are both open source content management systems. Joomla has its roots orginally from a system called Mambo and Drupal was created by Dries Buytaert.

Almost one year ago, I took on the task of developing my first Drupal site. Having primarily been a Joomla developer for the past 3 years, this felt like a daunting task as I have always heard that Drupal is hard to use and not user friendly.


Jun 2 2010

Creating Custom Content Type Page Templates with Drupal & PHP

Creating Content Type Page Templates with Drupal & PHPWe were recently asked to create custom landing pages for a Google ad campaign for a Drupal site we developed. The issue we faced was that the layout for the landing page was not really close to anything in the existing theme.

Drupal by default can do custom node type templates based off any given custom content type (node-blog.tpl.php for example) but all that does is theme and customize the content area. In our case we needed to change the entire page layout. Well it turns out there is a Drupal PHP preprocess function that can help accomplish custom page templates.


May 12 2010

How to Create a Custom Date Format for Better Theming in Drupal Views

 Create a Custom Date Format for Better Theming in Drupal Views


May 10 2010

Custom Body Class with PHP for advanced Theming and CSS in Drupal 6

I recently developed a Drupal site where each page in the site was based on a custom content type and needed some very specific theming. Although my custom theme was based on 960.gs, I decided to borrow from the zen theme its custom body class implementation to give more meaningful CSS classes to leverage for theming.


Apr 1 2010

How to Customize and Theme Post and Date info in Drupal

When I was theming my blog in Drupal, I decided I wanted a better way to customize and display post info such as wording used and the way date was displayed. The first step is to have a look around and see where the code is coming from that renders this info. I viewed the files in my custom theme folder and discovered these few lines of code in node.tpl.php

  1. <?php if ($submitted): ?>
  2.     <span class="submitted"><?php print $submitted ?></span>
  3.   <?php endif; ?>

In HTML, that is rendered as:
  1. Submitted by highrockmedia on 4-01-10