<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'>So I&#8217;ve received a lot of great suggestions ... I&#8217;ve got one more to try before I can say I&#8217;ve tried them all. &nbsp;It seems I may not have fully explained everything I&#8217;ve done so that everyone is on the same page.<BR>
<BR>
<BR>
I enabled CCK and created a new content type (call it testtype for example) that I wish to theme.<BR>
<BR>
I created new content for that type so it shows up on my default screen<BR>
<BR>
I created a template node-testtype.tpl.php based on the node.tpl.php and modified that new file to make sure that my testtype was being interpreted by it. &nbsp;It was, so the node template override works.<BR>
<BR>
The difficulty I&#8217;ve still had is creating a page dedicated to that type to show only that type and themed accordingly<BR>
<BR>
</SPAN></FONT></FONT><UL><LI><FONT SIZE="4"><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>I&#8217;ve created a page page-testtype.tpl.php
</SPAN></FONT></FONT><LI><FONT SIZE="4"><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>I&#8217;ve modified my template.php adding the function &#8220;_phptemplate_variables&#8221; with suggestions I&#8217;ve found here
</SPAN></FONT></FONT><LI><FONT SIZE="4"><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>Each change was tested after clearing the cache to reset the registry<BR>
</SPAN></FONT></FONT></UL><FONT SIZE="4"><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'><BR>
None of these worked for me. &nbsp;Now based on the online manual, and a reminder by one responder, it seems like this approach SHOULDN&#8217;t work out of the box ( <FONT COLOR="#0000FF"><U><a href="http://drupal.org/node/190815">http://drupal.org/node/190815</a></U></FONT><SPAN STYLE='font-size:14px'>) but users here, and co-workers, have seen it work so if anyone has any suggestions of what I might be missing do do what I wish to do, I&#8217;d appreciate it.<BR>
<BR>
<BR>
<B>And I wish to say again that I really appreciate all the attempted help that I&#8217;ve received so far!!!<BR>
</B><SPAN STYLE='font-size:11pt'><BR>
<BR>
<BR>
On 4/10/09 11:19 AM, &quot;Michael Prasuhn&quot; &lt;mike@mikeyp.net&gt; wrote:<BR>
<BR>
</SPAN></SPAN></SPAN></FONT></FONT><BLOCKQUOTE><FONT SIZE="4"><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'><SPAN STYLE='font-size:14px'><SPAN STYLE='font-size:11pt'>On Apr 10, 2009, at 6:24 AM, Scott Matthews wrote:<BR>
&gt; I&#8217;m not sure I understand your question? &nbsp;I&#8217;m not using path auto or <BR>
&gt; views. &nbsp;I&#8217;m just typing in the URL:<BR>
&gt;<BR>
&gt; <a href="http://localhost/type">http://localhost/type</a><BR>
&gt;<BR>
&gt; And looking to access the page<BR>
&gt;<BR>
&gt; Page-type.tpl.php<BR>
<BR>
You need to have a node created in Drupal first, with the path 'type' <BR>
before you can create a template for the node-type. You can add node <BR>
types to your site at admin/content/types. Alternately you could <BR>
create a new node, review the URL when you are done and if it is <BR>
example.com/node/1, then you could use the template page-<BR>
node-1.tpl.php for that node.<BR>
<BR>
-Mike<BR>
<BR>
__________________<BR>
Michael Prasuhn<BR>
503.488.5433 office<BR>
714.356.0168 cell<BR>
503.661.7574 home<BR>
mike@mikeyp.net<BR>
<a href="http://mikeyp.net">http://mikeyp.net</a><BR>
<BR>
<BR>
<BR>
<BR>
<BR>
--<BR>
[ Drupal support list | <a href="http://lists.drupal.org/">http://lists.drupal.org/</a> ]<BR>
<BR>
</SPAN></SPAN></SPAN></FONT></FONT></BLOCKQUOTE><SPAN STYLE='font-size:11pt'><SPAN STYLE='font-size:14px'>
</BODY>
</HTML>