Theming table views in Drupal

This Comment will be submitted for moderation and will not be accessible to other users until it has been approved.


While using the views module yesterday, I cam across the need to theme the table view output. After some googling I found this link : http://drupal.org/node/154084 .

Bascially there are two ways to go about theming a table view.

1) By adding a custom function in template.php

2) Using style.css in your theme folder.

For more detials check out the link above

 

                                     
0 points

Actually, there is one more very flexible method. I've written about it here

http://www.jakepyne.co.uk/2010/development/php/drupal-6-views-table-theming-conditional-cell-formatting

Anonymous's picture
Created by Anonymous

Post Comment

  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>, <c>, <cpp>, <drupal5>, <drupal6>, <java>, <javascript>, <php>, <python>, <ruby>. Beside the tag style "<foo>" it is also possible to use "[foo]". PHP source code can also be enclosed in <?php ... ?> or <% ... %>.