Showing similar content nodes on Drupal

To show similar content nodes on drupal you have to install the similar module. After installing the similar module
  • goto admin/build/block
  • Drag the Similar Entries module


If you want to integrate the similar content to the node body, call the similar_content theme function. print theme('similar_content', $node); on node.tpl.php Using the variables available withing node.tpl.php you can choose whether to display the similar content on teasers or full views etc. For example to show similar node contents on the full node use the following code if($teaser == false): print theme('similar_content', $node); endif; :) 01 Dec, 2009
Comments (0)
You may also like
On Facebook
Email Newsletter