Formatting Date and Time in Drupal
Snippet to change the node created on date for use in story nodes:
In node-story.tpl.php or other node tpl:
<?php print format_date($node->created, 'custom', 'F jS, Y'); ?>Prints:
March 25th, 2009
Check out php.net for complete list!
From PSD to Drupal Theme Tutorial Part I
While at a recent meeting held at Bryght's Office, there was great interest by the audience in seeing how to convert a Photoshop file into a Drupal theme.This tutorial will show you how to take an existing design in either Photoshop or Illustrator to XHTML to a working Drupal theme.
For this example, I will be using Photoshop CS3 on a mac, however older versions of Photoshop and PC users should be able to follow along as the primary tools and menus that we will be using should remain very similar.
Those who prefer Illustrator, the method is almost exactly the same as in Photoshop. But since there was an interest in Photoshop specifically, it is the program I'll be using for this example.