Closed (fixed)
Project:
960 Robots
Version:
6.x-2.0
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
13 Aug 2009 at 06:16 UTC
Updated:
27 Aug 2009 at 11:30 UTC
Hi
The default unformatted view tpl file for views uses a variable named classes (views-view-unformatted.tpl.php).
This is an array of classes for each row, typically an array of the form (views-row views-row-1 views-row-odd views-row-first, views-row views-row-2 views-row-even etc).
The generic preprocess function in ninesixty robots overrides this.
From line 55:
function ninesixtyrobots_preprocess(&$vars, $hook) {
$vars['classes'] = $hook;
}
Changing this to be slightly more selective (see below) prevents the override for any views template reliant on the classes variable (there are a few):
function ninesixtyrobots_preprocess(&$vars, $hook) {
if(substr($hook, 0, 4) != 'view') {
$vars['classes'] = $hook;
}
}
Comments
Comment #1
add1sun commentedThat function has actually been removed in the latest release since it was originally included for demo purposes only. :-)