How do I access variables displayed in devel? Using devel I'm able to retrieve the names of certain variables and how to access them.

For example I might want to use the book menu name. Devel has it listed as so

$...-&gt;book['menu_name']


But I'm not sure how to print that info in page.tpl.php or access it in general. I'm also not sure what to replace the $... with.

I've tried the following with no luck.

print $page-&gt;book['menu_name'];
print $node-&gt;book['menu_name'];
print render($page-&gt;book['menu_name']);
print render($node-&gt;book['menu_name']);
If you want to do any theming to node use node.tpl.php instead of page.tpl.php

in page it is not suggested. If you want to render a field in node.tpl just write the following

&lt;?php print render($content['menu_name'])?&gt;


or simply

&lt;?php print $node-&gt;book['menu_name']; ?&gt;