Plugin: Related Posts
Author: Paul Westbrook
Release Date: 05/28/2007
Version: 20070528

The Related Post plugin returns a list of posts related to a specified one.

Usage:

1) Enable the plugin
2) Add the following code to the postandcomments.template

<!--Related Posts-->
		{if $related && $related->isEnabled() }
            {assign var=postid value=$post->getId()}
            {assign var=recentsrelatedposts value=$related->relatedArticles($postid)}
            {if count($recentsrelatedposts) > 0 }
                {$locale->tr("related_plugin_display")}:
                <ul>
                {foreach from=$recentsrelatedposts item=relatedpost}
                    <li>
                    <a title='{$locale->tr("permalink_title")}: {$relatedpost->getTopic()}' href="{$url->postLink($relatedpost)}">
                    {$relatedpost->getTopic()}
                    </a>
                    </li>
                {/foreach}
                </ul>
            {/if}
        {/if}


TODO :

Add better caching
Changes to generate better keywords from a given article