By Stefanos Karagos on
Is it possible to separate the Comment link from Read More link in a Node?
Actually i want to move the Comment link at the top beside of "Submit by" info and keeping the Read More link at the bottom...
any ideas how to modify the node.tpl.php file?
thank you very much
Comments
Doing it by str_replace() or load_node()
There is a nice explantation at http://drupal.org/node/36008 but you are also able to do things like that in node.tpl.php:
instead of using the predefined variables like $content, $link, and so on.
Thomas Narres
Keep the sunny side up
thank you for ur
thank you for ur reply
because my php knowlenge is not the best...
is it possible to give me an example how to extract the "comments link"?
Thank you very much
The snippet with preg_replace
Copy&Paste this code to the beginning of your node.tpl.php:
Replace the part in your node.tpl.php where something like:
print $submittedby:
print $submitted." | ".$commentThe two extract-snippets are deleting the two parts (comment & readmore link) from $links and stores them into $comment and $readmore.
Thomas Narres
Keep the sunny side up