<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
It is my understanding that 'out of the box' Drupal does NOT use a
template suggestion for page templates based on content type. Page
templates are overridden by default for the front page or specific
nodes only. Node templates CAN be used per content type by default
(node template are not what you're asking about.) Plenty of
information on <a class="moz-txt-link-freetext" href="http://drupal.org/node/190815">http://drupal.org/node/190815</a> (as already mentioned in
this thread.)<br>
<br>
<br>
To use a page template per content type, I believe you will need to use
a custom function in template.php. The one provided by Aldo seems like
it should work. It could be that you need to clear the theme cache
(<a class="moz-txt-link-freetext" href="http://drupal.org/node/173880#theme-registry">http://drupal.org/node/173880#theme-registry</a>). <br>
<br>
Or maybe the function is not being processed. You could simply rename
the function (.._preprocess_...) and that may help. Or, rename $vars
with $variables. Take a look at these two pages. <br>
<br>
<a class="moz-txt-link-freetext" href="http://drupal.org/node/223430">http://drupal.org/node/223430</a><br>
<a class="moz-txt-link-freetext" href="http://drupal.org/node/223440">http://drupal.org/node/223440</a><br>
<br>
<br>
Sorry I can't be more help with the exact naming to use.<br>
<br>
- John<br>
<pre class="moz-signature" cols="72">**************************************************
John Callahan
Geospatial Application Developer
Delaware Geological Survey, University of Delaware
227 Academy St, Newark DE 19716-7501
Tel: (302) 831-3584
Email: <a class="moz-txt-link-abbreviated" href="mailto:john.callahan@udel.edu">john.callahan@udel.edu</a>
<a class="moz-txt-link-freetext" href="http://www.dgs.udel.edu">http://www.dgs.udel.edu</a>
**************************************************</pre>
<br>
<br>
Scott Matthews wrote:
<blockquote cite="mid:C604D1E1.4B2C%25smatthews@optaros.com" type="cite">
<title>Re: [support] Overriding page.tpl.php for node type...</title>
<font size="4"><font face="Calibri, Verdana, Helvetica, Arial"><span
style="font-size: 11pt;">Is there nothing more that you did for this?
I just plugged this in replacing the version of that method I had
before and it did not work. It’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, "Aldo Martinez Selleras" <a class="moz-txt-link-rfc2396E" href="mailto:aldo@caonao.cu"><aldo@caonao.cu></a>
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>
if ($vars['node'] && arg(2) != 'edit') {<br>
$vars['template_files'][] = 'page-'. $vars['node']->type;<br>
}<br>
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 moz-do-not-send="true"
href="http://lists.drupal.org/">http://lists.drupal.org/</a> ]<br>
<br>
</span></font></font></blockquote>
<pre wrap="">
<hr size="4" width="90%">
--
[ Drupal support list | <a class="moz-txt-link-freetext" href="http://lists.drupal.org/">http://lists.drupal.org/</a> ]</pre>
</blockquote>
</body>
</html>