By hostdp6 on
I am trying to print the comment form and comments at the bottom of my custom node template but have been unable to do so and I can't find any solutions that work. Does anyone have any ideas?
I am trying to print the comment form and comments at the bottom of my custom node template but have been unable to do so and I can't find any solutions that work. Does anyone have any ideas?
Comments
Post your Code
Hi hostdp6,
can you post your tpl.php code here to review and tell me wich drupal version you are using!
Cheers
Dirk
I'm using Drupal 6.14, here
I'm using Drupal 6.14, here is my code, thanks.
Don't forget <code> tags. -
Don't forget
<code>tags.- Ryan
<?php // Grabs the firsts
Sorry, I am new at this and am clearly doing something wrong. This is what appears when I use the code tag. Do you know what I am doing wrong or is there a way for me to just atach the php file?
edited by silverwing - fixed code tag closureComplete Code?
Hi hostdp6,
is this the complete code of your tpl.php file? Anyway put at the end of your tpl.php file this command print_r($node);
In your content type settings admin/content/types choose your content type and in the comment section under Location of comment submission form: choose Display below post or comments.
when you go to your node now you see a long array of the node object. Get the value for your comment form and print it under your $node->content['body']['#value'];
Cheers
Dirk
Got it. You're the man,
Got it. You're the man, thanks.