web development

Anatomy of a Drupal Theme - Basic Structure

It can be a bit confusing to create a custom theme for Drupal. Users new to this process typically hack a core theme like Garland, or grab a starting theme from the repository, but then it's easy to get frustrated with all the different template files, functions, and styles. After all, what are these extra functions? Why aren't they included in Drupal's core if they're so necessary? Why do I see page.tpl.php and a bunch of node-*.tpl.php files and a dozen other .php and misc files? I'll try to cover some of the basic concepts of Drupal theming and get into the more advanced stuff in later posts. My goal here is to really break things down on a simple, linear level.

Anatomy of a Drupal Theme - The Node Object

The function behind the $node object is node_load(). This brings the $node object into play within your node.tpl.php template file and gives you the ability to display any variables from the node. Drupal handles everything behind the scenes -- access permissions, attached taxonomy, attached files, meta information, and more -- and hands you the gift wrapped object. In addition to the core variables, the node object also includes any added variables, such as CCK fields. 

Copying Email from Server to Server via IMAP with Mail Carbon

I stumbled upon Mail Carbon the other day, a great little open source app @ sourceforge (http://mailcarbon.calfater.com/) that allows you to specify 2 IMAP servers & the user's account information, which then transfers all of the email from the old to the new, maintaining hierarchy (folders) and all of the good stuff that we get out of IMAP.

Acronis uses Drupal for their Knowledge Base

It's always cool to see large organizations implement Drupal. Acronis (software vendor specializing in backup and disk utility apps) has leveraged the power of Drupal's core node and taxonomy systems, as well as powerful modules like webform, to provide their community with an intuitive, simple, and well-mapped system -- at a fraction of what it would cost them to have built it from scratch.

Check it out at http://kb.acronis.com/

Subscribe to RSS - web development