On this podcast episode, Bob shows you a really powerful and robust way to theme your Views output using a set of under-documented variables. This method will give you faster load times on your views and will give you amazing flexibility and node-style layouts of each of your views. This is powerful stuff, folks! This method was investigated and worked out at a Detroit Drupal meetup with @mattfarina and @jasonrsavino
Man, I wish you had of put this up about two weeks ago when I was trying to figure it out! I ended up creating a whole bunch of files with ridiculous file names in order to theme each field (names like "views-view-field--ministry-gallery--block-1--field-gallery-image-fid.tpl.php").
Besides performance, you may have to theme your view this way if you need more options to display your data then just node or teaser. On our site we have 4 different views for the same nodes, and each view needs to be custom themed.
A question about performance: If you have reasonable caching on your view, shouldn't performance become a non-issue? So what if drupal loads extraneous information about the node if it's only doing it once?
posted by:
Daniel Murphy