lucaube ha scritto:
Hello,
I am fairly new to drupal. Here is an overview for what i am trying to accomplish.
I have a Node Type Doctors. Using CCK for additionnal fields. I have a node-user.tpl.php witch is used to fomat my node-user.
I want to have a page /Category/ that will list all my doctors. I am using the view module to get the data i need. I want to use row style node to format my nodes. But i do not want to use the same formating as the node-user.tpl.php. I cannot find how to accomplish this.
Is there a way to have 2 Template files for nodes.
Why use "node" and not "fields" ? When you use "node" Drupal make a node_load() call, and this generate 30+ queries. Use fields, it's better.
However edit the view, click on the "page display" and click "Theme: Information" (first column) to see what type/content and name of all file that you can use for this particular view.
Ah, if you want to know if node_*.tpl.php file is called from a view try to see if $node->view exists.
M.