Hello, I am reading that If I want to make a ifferent block I only need to make a new block.tpl.php file and bring up to the theme.

But If I want to make a new node.tpl.php How can I make it.

Can I make node-idnode.tpl.php, or node-module.tpl.php, or node-typeofcontent.tpl.php?

I only have found this nodes in the community
http://drupal.org/node/46012
http://drupal.org/node/45944
http://drupal.org/node/11816
http://drupal.org/node/11813

thanks

Oskar

Comments

vm’s picture

node-contenttype.tpl.php themes that content type

That much I can tell you at this point, Unfortunatley you did not tag your thread with the version of Drupal in use, nor did you mention it in your post. That said, it's hard to be specific and point to you correct documentation as well as help.

If using Drupal 5 & earlier you will want to start here: http://drupal.org/theme-guide/5 & http://drupal.org/node/104316

head over to the drupal-dojo.com site and search for themeing to find videocasts on how to theme in Drupal.

and if you've not already check out this area of drupal.org for some videos and slides http://drupal.org/handbook/customization/videocasts

_____________________________________________________________________
My posts & comments are usually dripping with sarcasm.
If you ask nicely I'll give you a towel : )

miles28’s picture

After reading the link above, http://drupal.org/node/104316, have a look also on contemplate module.

proudleo’s picture

According to Pro Drupal Development (the book), yes, you can do just that.

PHPTemplate will choose your new node template over the default.

oskar_calvo’s picture

Sorry VeryMisunderstood , I do not realize of that, I'm working with Drupal 5.x, the theme is zen. And thanks proudleo.

I think I get it in this comment: http://drupal.org/node/117491#comment-231929

Oskar

gestión del conocimiento y de la información con software libre

Jeff Burnz’s picture

Actually I think you want http://drupal.org/node/17565

What VeryMisunderstood pointed out in the first comment is correct.

oskar_calvo’s picture

Thanks jmburnz

I get it building the page-node-ide.tpl.php file, and "write" the html what I want to show.

Thanks

Oskar

gestión del conocimiento y de la información con software libre

Jeff Burnz’s picture

if you want to build a template for your node type, and your node type is called "article", then the template file should be named:

node-article.tpl.php