Hi there!
I want to put this inside my node.tpl.php:

  <?php
  echo '<div class="btn-group">';
  foreach($tabs as $tab=>$link) {
    echo '<button class="btn"><a href="$link">$tab</a></button>';
  };
  echo '</div>';
  ?>

But, it´s not printing anything... so I´m sure this is somewhat wrong.
Maybe because this should be inside the page.tpl.php?

Thanks for your help!!

Rosamunda

Comments

duckzland’s picture

I dont think by default the tabs array is stored in node.tpl.php variables.

You will need to manually add the arrays from preprocess_node().

for hints look at http://api.drupal.org/api/drupal/includes!theme.inc/function/template_pr... and see how it called menu_local_tabs() and stored the arrays result in $variables[tabs]

--------------------------------------------------------------------------------------------------------
if you can use drupal why use others?
VicTheme.com

yul63’s picture

print render($tabs);
Rosamunda’s picture

Thanks!!

Rosamunda’s picture

Thank you!!