0
我想做的事情在page.tpl.php中是這樣的:菜單項激活在Drupal 7
<?php
$main_menu_tree = menu_tree('main-menu');
[ get current page/path ]
[ IF we are on page1 THEN set menu item "item1" active ]
print drupal_render($main_menu_tree);
?>
我該怎麼辦呢?