2011-06-08, 17:28:50
macky Wrote:I was wondering, is there a simple method of displaying news posts on 2 or more pages?
It is not supported by News Manager out of the box, but you could add the following function to for example plugins/news_manager/inc/site.php:
Code:
function nm_show_posts($n) {
$posts = nm_get_posts();
$posts = array_slice($posts, 0, $n, true);
foreach ($posts as $slug=>$file)
nm_show_post($slug);
}
where $n defines the number of posts you want to show. Now create a new template (for example by copying template.php) wherein this function is called directly and add a page using the Pages tab that uses this new template.