Proper approach for showing menu based on node I'm setting up a new Drupal site and created a content type, taxonomy, and two menus. The taxonomy just has 2 items, which correspond to the menus. What I'd like to do is render the corresponding menu in a sidebar when the user is viewing a node from the content type, ideally highlighting the current item in the menu.

My current thinking is to write a custom module and use the hook_page_build. Then in that hook, see if arg(0) is 'node' and arg(1) is numeric and then node_load arg(1) and then if that node's type matches my content type, then field_get_items to get the node's taxonomy and pull the corresponding menu and then add it to $page['sidebar_first'].

Is this the right approach or is there a better way?

Thanks in advance!
I'd say the best way would be to use Menu Block.  This would allow you to use blocks built in visibility rules.

All you would need to do is create a new menu block, select which menu to display and select which content type it should be displayed on.  The menus get all the functionality of standard menus.

You could also just use the standard block that is created with every menu, check the disabled blocks section for those.  Menu Block however has a few more features.