Your Best Friend When Theming Views

Views 2 for Drupal 6 was quite the upgrade for those of us who were comfortable with the original version. It was pretty much a stellar upgrade in all aspects, but it requires a bit of knowledge and commitment to reach the point where you feel comfortable and confident with it.

In my opinion, one aspect of Views 2 that doesn't get the attention it deserves is the fantastic template-based way that it handles theming. You can theme virtually any aspect of a views result by overriding any number of template file.

The key to unlocking the power of Views theming is the innocent-looking "Theme: Information" link present in the Views UI. This link tells you exactly what .tpl.php files you need to override and provides you with a plethora of options for what you can name the overriding files.

Theme: Information screenshot

Want to learn more? Check out the documentation on drupal.org for Views 2 theming.

Add new comment

The content of this field is kept private and will not be shown publicly.