Using the Views Theme Wizard (5.x)

Support for sub-themes is poor in Drupal 5, so Zen bends the rules to get decent support for its sub-themes. This bending causes some minor issues with the Views Theme Wizard 5.x-1.6 that are pretty easy to fix.

When the Views Theme Wizard generates your view’s php code, you’ll need to change a few lines.

  1. Search for:
      _phptemplate_callback('views-list-VIEWNAME', $vars);
    and change it to:
      _phptemplate_callback('views_list_VIEWNAME', $vars, array('views-list-VIEWNAME'));

    Note the change from dashes to underscores in the first parameter.

  2. Search for:
      drupal_add_css(path_to_theme() .'/views-list-VIEWNAME.css');
    and change it to:
      drupal_add_css(path_to_subtheme() .'/views-list-VIEWNAME.css', 'theme');

    Note the function name change in the first parameter.

Did all that, doesn't seem

lefnire - August 29, 2008 - 23:45

Did all that, doesn't seem to make a difference

Did all that, and it didn't

lefnire - August 30, 2008 - 03:14

can't be sure, i was changing a lot of things to get this working... but i think i required this patch

 
 

Drupal is a registered trademark of Dries Buytaert.