Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

13 lines (9 sloc) 0.288 kb
<?php
class RecentBlogPosts extends Widget{
static $title = "Recent Posts";
static $cmsTitle = "Recent Blog Posts";
static $description = "List recent posts for this blog.";
function Posts($num=5) {
return DataObject::get("BlogEntry", "", "Date DESC","", $num);
}
}
Jump to Line
Something went wrong with that request. Please try again.