<HTML>
<HEAD>
<TITLE>Overriding page.tpl.php for node type...</TITLE>
</HEAD>
<BODY>
<FONT SIZE="4"><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>This should be a simple question and answer...<BR>
<BR>
I know that a basic premise of Drupals theme hierarchy should be that if I want a page for a specific node I make a file page-[<I>type</I>].tpl.php. &nbsp;I have done this and I still get a &#8220;Page not found&#8221; issue. &nbsp;Creating a node-[type].tpl.php works for overriding the node template for the specific node type.<BR>
<BR>
Does anyone have any suggestions for what might be missing from the out of the box Drupal solution to get this working?<BR>
<BR>
I&#8217;ve tried adding the following function to my template.php which I found on a forum post previously but with no success:<BR>
<BR>
function _phptemplate_variables($hook, $vars) {<BR>
&nbsp;&nbsp;&nbsp;&nbsp;if ($hook == 'page' &amp;&amp; isset($vars['node'])) {<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$vars['template_files'][] = 'page-'.str_replace('_', '-', $vars['node']-&gt;type);<BR>
&nbsp;&nbsp;&nbsp;&nbsp;}<BR>
&nbsp;&nbsp;&nbsp;&nbsp;return $vars;<BR>
}</SPAN></FONT></FONT>
</BODY>
</HTML>