Posted by Rosamunda on August 16, 2012 at 4:59pm
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
I dont think by default the
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_preprocess_page/7 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 - Premium Theme Club
skype id : duckzland
In page.tpl.php
<?phpprint render($tabs);
?>
Thanks!!
Thanks!!
Rosamunda
Buenos Aires | Argentina
Thank you!!
Thank you!!
Rosamunda
Buenos Aires | Argentina