im following this great podcast which is drupal 5 (i guess).
I want to add a View into my page--taxonomy.tpl.php and get the id of the taxonomy term im currently looking at. Could maybe anybody translate this code snippet for drupal 7?
<?php
$view = views_get_view('taxonomypages');
$display = $view->execute_display('block_1', 2);
print $display['content'];
?>
I figured out that this shows me the view:
$view = views_get_view('taxonomypages');
print $view->preview('block_1',$tids);
but $tids is undefined.
i need to have the current taxonomy term id that im looking at e.g when im at taxonomy/term/12
the id is 12 but $tids is undefined.