<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’ve received a lot of great suggestions ... I’ve got one more to try before I can say I’ve tried them all. It seems I may not have fully explained everything I’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. It was, so the node template override works.<BR>
<BR>
The difficulty I’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’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’ve modified my template.php adding the function “_phptemplate_variables” with suggestions I’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. Now based on the online manual, and a reminder by one responder, it seems like this approach SHOULDN’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’d appreciate it.<BR>
<BR>
<BR>
<B>And I wish to say again that I really appreciate all the attempted help that I’ve received so far!!!<BR>
</B><SPAN STYLE='font-size:11pt'><BR>
<BR>
<BR>
On 4/10/09 11:19 AM, "Michael Prasuhn" <mike@mikeyp.net> 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>
> I’m not sure I understand your question? I’m not using path auto or <BR>
> views. I’m just typing in the URL:<BR>
><BR>
> <a href="http://localhost/type">http://localhost/type</a><BR>
><BR>
> And looking to access the page<BR>
><BR>
> 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>