The page.tpl.php just seems to print out the $tabs variable, which appears to contain both primary and secondary tabs. I've not used preprocessing via template.php before - is this the way to do this kind of thing?

The reason I need the extra div is to acheive a sort of "tabs with buttons underneath" type look like in the Seven theme. I have tried borrowing code from Seven but it doesn't seem tot work.

Any pointesr would be great.

Comments

aquariumtap’s picture

Hi dixhuit,

Which code did you borrow from Seven? This is how they are splitting up the primary and secondary variables in template.php, which is probably the approach you should take as well.

/**
 * Override or insert variables into the page template.
 */
function seven_preprocess_page(&$vars) {
  $vars['primary_local_tasks'] = $vars['tabs'];
  unset($vars['primary_local_tasks']['#secondary']);
  $vars['secondary_local_tasks'] = array(
    '#theme' => 'menu_local_tasks',
    '#secondary' => $vars['tabs']['#secondary'],
  );
}
dddbbb’s picture

Thanks but I ended up switching to Omega in the end.

aquariumtap’s picture

Status: Active » Closed (fixed)