Reputation: 633
how to access views variables in page.tpl.php or node.tpl.php
Upvotes: 0
Views: 1151
Reputation: 10351
In your theme_preprocess function in template.php, you can use the views_get_current_view() function to access any views data for the view that you are loading. The $variables are pass by reference, so you can add and manipulate them as necessary. More information is located in Setting up variables for use in a template documentation on Drupal's website.
Upvotes: 3