Drupal Views pulling Data Fields

Posted by askon on Stack Overflow See other posts from Stack Overflow or by askon
Published on 2010-06-03T12:04:18Z Indexed on 2010/06/03 17:24 UTC
Read the original article Hit count: 342

Filed under:
|
|
|
|

I'm a little new to drupal but have been using things like devel module and theme developer to speed up the learning process.

My question, is it possible to theme an entire views BLOCK from a single views tpl.php page OR even a preprocess?

When I'm grabbing the $view object I can see results $node->result, it has all of the results, but it doesn't have all my views fields. I'm missing things like, node path, taxonomy titles and paths, etc.

From my understanding, Drupal wants you to individually theme EACH output field. It seems rather superfluous to create so many extra templates when I've already got over HALF of my results coming through the $view object

Would outputting node over field make this easier? Or am going in the wrong direction with $view->result?

Thanks!

© Stack Overflow or respective owner

Related posts about php

Related posts about mysql