I have this in my template.php:
function mytheme_preprocess_views_view(&$vars) {
$vars['test'] = 'Filtertest';
}
And this in my views-view-responsive-grid--taxonomy-term.tpl.php:
<?php print $test; ?>
... this does not work though. The template is called and works but my $test variable does not get printed.
What am I missing here? Any help is greatly appreciated.
if($vars['view']->name == 'your_view_name') { $vars['test'] = 'Filtertest'; }
, and make sure thatviews-view-responsive-grid--taxonomy-term.tpl.php
the right tpl for this view, and flush all caches$vars['test'] = 'Filtertest';
should works, just be sure that you in the right tpl .