01 Dec, 2009

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

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; 
:)
Comments (0) Post a comment
You may also like



Email Newsletter
Email:
Popular Posts
Recent Posts
Tags
Random photo
Like a batman guarding his boat @ Elephant Beach Havelock Like a batman guarding his boat @ Elephant Beach Havelock in Havelock Island Andaman
On Facebook
Recent Comments


digitalpbk