How to retrieve 3 recent blog posts?

Topics: Business Logic Layer
Aug 15, 2011 at 11:32 PM


I like to retrieve 3 recent blog posts and display them in a small section of a page. Can someone help me? Thank you

Aug 16, 2011 at 12:21 AM
Edited Oct 24, 2011 at 8:54 PM

Very easy.


Go to add widgets

Select ----> Recent Posts

Click on the pencil icon.

In the Text box that says <label for="widget_txtNumberOfPosts">Number of posts</label> <input id="widget_txtNumberOfPosts" style="width: 30px;" name="widget$txtNumberOfPosts" type="text" value="10" />    <------ Put 3

ScreenShot: Here

Click save thats it for the widget.


Make sure that the widgetzone in your master page is where you want the recent posts :)


If not put it there :)



Java Blog

Aug 16, 2011 at 1:04 AM

Thank you Brian!