scalable theming

UPDATED: Can't Add CSS, JS, RSS Icon Or Set Title Or Messages In Preprocess Page?

UPDATE: Due to recent changes to our website the code snippet (the valuable part of this blog post) got accidentally lost. If you read this already, please come back to see the sample code. Thanks!

Often you want to add CSS files, scripts, feed icons or even set Drupal's page title from the theme layer. The most obvious place to call Drupal's functions for these tasks is probably in a page preprocess function. However calling the following Drupal API functions from a theme or module's NAME_preprocess_page() function often doesn't work;

Sharpen Your Theming Skills At DrupalCon

Theming is one of the aspects of Drupal development that Drupalers most want to get better at, according to Dries' last survey.

Video of Scalable Theming Session from Drupalcon Boston

Drupalcon Boston sessions were all recorded on video and have been made available on archive.org, thanks to numerous drupal community members and other Drupal resources. (This is quite out of date now, but better late than never.) Here are the videos from my talk on Scalable Theming: Theming for 100s of node types, CCK fields, and views:
Syndicate content