latest posts help
| From: | Michael Simiyu | Date: | Sun, 06 Feb 2011 18:03:49 +0000 |
| Subject: | latest posts help | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-311172@lists.php.net to get a copy of this message | ||
hello , am working on showing the last 3 posts showed on a message board ( bitweaver ) and i would like to know what to add on the below line of code to show the last 3 this is what i have that shows the last post
Code:
<a href="{$board.last.url}" title="{$board.last.title|default:"Post..."}">{$board.last.title|default:"Post..."|truncate:40}</a>
what should i add to the code above to pull the last 3 posts so i could have it like this... (the code below just shows the latest in a list format )
Code:
{if !empty($board.last)}
» <a href="{$board.last.url}" title="{$board.last.title|default:"Post..."}">{$board.last.title|default:"Post..."|truncate:40}</a>
<br/>
» <a href="{$board.last.url}" title="{$board.last.title|default:"Post..."}">{$board.last.title|default:"Post..."|truncate:40}</a>
<br/>
» <a href="{$board.last.url}" title="{$board.last.title|default:"Post..."}">{$board.last.title|default:"Post..."|truncate:40}</a>
<br/>
{/if}
Best Regards
Michael S.