Showing similar content nodes on Drupal

2009
01
Dec

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

OR

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; 
Smiling

Similar Posts
Related Searches




Comments

Post new comment

The content of this field is kept private and will not be shown publicly.