This would be nice for theming.

Comments

HansKuiters’s picture

Version: 7.x-2.0-beta3 » 7.x-2.0-rc2
Component: Miscellaneous » User interface
Category: Task » Feature request
Issue summary: View changes

Sure would be nice.

HansKuiters’s picture

Ok, that wasn't too hard.

I added this code to my themes template.php which adds a class 'homebox' to the body class attribute. There might be a better way to do it.

/**
 * Override or insert variables into the html template.
 */
function MYTHEME_preprocess_html(&$vars) {
  $current_page = menu_get_item();
  if (isset($current_page['page_callback']) && $current_page['page_callback'] == 'homebox_build') {
    $vars['classes_array'][] = 'homebox';
  }
}

drumm’s picture

Status: Active » Closed (won't fix)

That is indeed the best way to do it.