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.
Luc
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.
i'm creating a postcard system, i found the ecard module, but it don't do all i need, for example:
- show popular ecards (most sents). - show the ecards received for a particular user, show this in a block, could be. - show the user more active.
there is some module to do this?
The things you ask for can be done with views if the ecard module has views integration, first check for that. If ecard has no views integration the forward module can also send ecards and has as far as I remember views integration. Print module can also send ecards.
Hans
2010/4/5, Aldo Martinez Selleras aldo@caonao.cu:
i'm creating a postcard system, i found the ecard module, but it don't do all i need, for example:
- show popular ecards (most sents).
- show the ecards received for a particular user, show this in a block,
could be.
- show the user more active.
there is some module to do this?
[ Drupal support list | http://lists.drupal.org/ ]
forward it's very GOOD, i think could solve me the problem, but all this modules send the "node" to an external server, but i need this work with internal users and internal mail system, how can i do that?
there is some way for integrate the forward module, with privatemsg, for the send process?
how can i do for do the forward module, to work locally, i mean, forward any type to local drupal users, even if sent a notification to the email of any of this!
thks in advanced
Cannot quiet understand your Question. 1) Are you looking at forwarding links from your website? http://drupal.org/project/forward OR 2) Email notifications on certain actions? http://drupal.org/node/199254
Shyamala I <a href="http://shyamala-drupal.blogspot.com/">Blog</a> and <a href="http://www.twitter.com/shyam_raj"> Tweet</a>. http://www.netlinkindia.com
-----Original Message----- From: support-bounces@drupal.org [mailto:support-bounces@drupal.org] On Behalf Of Aldo Martinez Selleras Sent: Tuesday, April 20, 2010 3:45 AM To: support@drupal.org Subject: [support] about forward module
how can i do for do the forward module, to work locally, i mean, forward any type to local drupal users, even if sent a notification to the email of any of this!
thks in advanced
what i want is send a node to other user, just like postal system, but only to local users, don't send the nodes to external user, using a complete email address, just send the node (card) to a local user of drupal site!
so i try the ecard module, and the forward module, both have more less the same functionality, but the forward module make more than logs like ecard module, so better for me, for statistics, because i need to show the most active users, with sender and recipient addresses.