<HTML>
<HEAD>
<TITLE>Re: [support] Overriding page.tpl.php for node type...</TITLE>
</HEAD>
<BODY>
<FONT SIZE="4"><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>Is there nothing more that you did for this? &nbsp;I just plugged this in replacing the version of that method I had before and it did not work. &nbsp;It&#8217;s still not recognizing my page-type.tpl.php.<BR>
<BR>
Did you mean to name the file template.tpl.php, or did you mean template.php?<BR>
<BR>
<BR>
On 4/10/09 9:55 AM, &quot;Aldo Martinez Selleras&quot; &lt;aldo@caonao.cu&gt; wrote:<BR>
<BR>
</SPAN></FONT></FONT><BLOCKQUOTE><FONT SIZE="4"><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>this work for me, in template.tpl.php<BR>
<BR>
function _phptemplate_variables($hook, $vars) {<BR>
if ($hook == 'page') {<BR>
&nbsp;&nbsp;&nbsp;&nbsp;if ($vars['node'] &amp;&amp; arg(2) != 'edit') {<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$vars['template_files'][] = 'page-'. $vars['node']-&gt;type;<BR>
&nbsp;&nbsp;&nbsp;&nbsp;}<BR>
&nbsp;&nbsp;&nbsp;&nbsp;return $vars;<BR>
}<BR>
<BR>
them , i create some files!<BR>
<BR>
page-blog.tpl.php<BR>
page-forum.tpl.php<BR>
page-privatemsg.tpl.php<BR>
page-my_node.tpl.php<BR>
<BR>
<BR>
--<BR>
----------------------<BR>
Aldo Martinez Selleras<BR>
Especialista en Telematica<BR>
CITMATEL GND Camaguey<BR>
Tel: 53 32 291661<BR>
Linux User #364356<BR>
--<BR>
[ Drupal support list | <a href="http://lists.drupal.org/">http://lists.drupal.org/</a> ]<BR>
<BR>
</SPAN></FONT></FONT></BLOCKQUOTE>
</BODY>
</HTML>