9. Theming Views
Views can be themed just like anything else in Drupal. Views provides an entirely new level of classes, theming templates, and strategies that greatly surpasses the capabilities of its predecessor. In this chapter, we’ll discuss the template files and their contents, change some CSS classes, and consider how we can approach rendering data by multiple methods.
An Overview
Views cleanly incorporates a CSS class for each piece of data returned by the query. This makes it much easier to pick a class for everything from theming all views to theming the odd-numbered fields for a single view in a specific block display. Views has a reasonably clean integration with the entire theming system of Drupal 6, allowing it to easily take ...
Get Drupal’s Building Blocks: Quickly Building Web Sites with CCK, Views, and Panels now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.