Overriding the Views table style plugin
In this recipe, we will override the Views template used to render table styles. In particular, we will be overriding the standard table used to display the tracker view in order to allow the spanning of rows of the same node type.
Getting ready
The Views module comes with a default view named tracker which provides the same functionality as the tracker module by providing a table listing nodes which the current user has either created or participated in. This view can be enabled from the Views administration page at admin/build/views
(Home | Administer | Site building | Views).
Since we will be overriding template files in this recipe, we will be making use of the myzen theme created earlier in this book.
How to do it...
The tracker view, once enabled, provides a table of pertinent content, as in the following screenshot, which can be accessed at the URL tracker
.
Looking at the markup of a typical row as displayed in the following block of code, we can...