Plugin recommended
From LifeType Wiki
Name: Recommended Posts
Latest version: 1.0
Download link: not on sourceforge yet, find it in subversion.
License: GPL
Author: Jon Daley
[edit] Description
This plugin offers a list of articles recommended by the blog owner.
[edit] Configuration
The plugin configuration page can be found under Control Center->Top Activities Management.
Type the article ids in the "Recommended Post IDs" field.
You can use the following functions in your template:
- $recommended->isEnabled() to check the plugin is enabled or not.
- $recommended->getPosts() to get the recommended posts.
Here is an example of code that you might add:
{if $recommended && $recommended->isEnabled()}
<h2>Recommended Posts</h2>
<ul>
{assign var=posts value=$recommended->getPosts()}
{foreach from=$posts item=rec_post}
<li><a href="{$url->postLink($rec_post)}">{$rec_post->getTopic()}
[{$rec_post->getNumReads()}]</a></li>
{/foreach}
</ul>
{/if}
