May 2011

May 31, 2011

The right CSS classes can give you exactly what you need to laser-focus the look and feel of certain pages on your site. A lot of those classes are built in already, like a handy class added to the body tag for different content types. But, what happens when you really need a class like that for something else, like highlighting content created in the last two weeks, or various other whimsical criteria? No problem. In this week, we show you how to easily add conditional classes at the body, page and node levels.

We also continue last week's theme of overriding existing output by demonstrating how to find and override theme functions (check out this free video). Finally, we wrap up this week's new videos with a review of the latest chapter in Drupal Theming Essentials.

Next week we get into some fun stuff, starting with an in-depth look on what each of the default theme settings mean, how to completely uninstall a theme, and how to add your own custom setting.

Below is a list of the new videos for this week. Enjoy!

May 24, 2011

This week we give you a set of tools you can use to laser-focus theme changes for any situations. Want to serve up a different page template to anonymous users? Want to add some markup to images for certain content types? When the president of Burundi visits your site in April, do you want to add some festive flourishes?

To tackle critical (and whimsical) theme changes for virtually any situation, we cover using template suggestions and go deep into preprocessing functions, illustrating both with practical examples and conceptual visuals. We also discuss the rules of thumb when it comes to naming each (something that can be tricky for even the veterans among us).

Most of the videos below are subscriber-only, but our example-driven crash course on preprocessing functions is available for free here. Below is the full new set for this week. Enjoy!

May 17, 2011

Have you ever wanted a different page template file for each node content type? Or wanted to theme a one-off node in a unique way?

Well, these week we dedicate our next videos exclusively to template files. Sometimes a mystery, often a little scary, template files are actually gentile beasts with a lot to offer under their somewhat hairy exteriors. After watching these, you'll know once and for all how template file naming works, and will glean a few critical tricks to using custom templates for virtually any situation (I say virtually, because next week we cover all the edge cases :) ).

We spent a bit of time on each of the most commonly overridden template files (nodes, blocks, page, and comments), first looking at their code to figure out just how they fit into the rest of the page. Then, we discuss specific options for overriding each template based on certain conditions we can pass through the template file name. Finally, we create example template files so you can see them in action and give you some tips on finding out if the right template files are being applied.

If any of that sounds frightening, no worries, just check out the FREE node template video to get started.

May 10, 2011

This week, we wrap up our fourth chapter in "Drupal Theming Essentials", we begin by covering how to include CSS and JavaScript files based on virtually any condition. Want to add a new stylesheet when your Aunt Betsy visits your site? Want to highlight articles with the word "awesome" in the title? No problem! We cover three common scenarios, and give you the tools to come up with your own conditions as you need them.

We also begin our 5th chapter, called "Template Files, Theme Function Overrides and Preprocessing Functions" with a video explaining the potential benefits of finding other ways to tackle Drupal theming tasks than using template files or theming functions when you can. Then, we launch right into discussing how to use template files, and figure out core template file suggestions.

Below are the new videos, enjoy!

May 3, 2011

When one begins building a theme, it's only natural to use one CSS file for everything. But that stops being fun after about 1500 lines. At that length, it becomes a serious task to grasp what's happening in the file, and the chances of a team member changing the wrong style inadvertently becomes greater.

This week, we spend a full 4 videos learning from some of the best examples in CSS stylesheet management so that when your stylesheets begin to plague your dreams, you have somewhere to turn.

As we begin to wrap up the series on theme file structure, and move into working with templates and theming function, we're going to spend a couple videos clearing up some of the areas we glossed over in previous videos. This week, we cover how to granularly enable or disabling toggling of thematic elements (not the kind that bumps a movie rating up to an R) with 'features'.

Here's a list of the new additions. Enjoy!