Portal Engine Questions on portal engine and web parts.
Version 5.x > Portal Engine > Displaying a list of latest posts from multiple blogs on a page View modes: 
User avatar
Member
Member
Prabodh - 8/1/2011 1:37:30 AM
   
Displaying a list of latest posts from multiple blogs on a page
How do I list latest posts on a page. These posts should be orderd by date and can be from multiple blogs.

The page should list all the posts with the latest ones on top with paging.

User avatar
Kentico Consulting
Kentico Consulting
kentico_borisp - 8/1/2011 3:49:07 AM
   
RE:Displaying a list of latest posts from multiple blogs on a page
Hello,

You can use the following approach:

1) Add a repeater to your page.

2) Set the following properties:
a) Path: /%
b) Document types: CMS.BlogPost
c) Order by expression: BlogPostDate Asc
d) Select top N documents: 3

The above setup displays the 3 most recent blog posts from the whole site. Please be free to tweak the settings according to your needs.

Best regards,
Boris Pocatko

User avatar
Member
Member
Prabodh - 8/1/2011 5:26:03 AM
   
RE:Displaying a list of latest posts from multiple blogs on a page
Hi Boris,

Thanks for the reply!! I was able to get it working.

I have defined a transformation to display the data as per required format.
However, I have an additional requirement. I want to display the Blog Month Name on the page in front of the Blog Post.

I am not able to get the Blog Month Name for the blogpost. I do get the ParentNodeID, however, I did not see any method in Transformation which would give me the Node Name.

Could you please help me with this?

User avatar
Member
Member
Prabodh - 8/1/2011 7:28:17 AM
   
RE:Displaying a list of latest posts from multiple blogs on a page
I got it working with

<%#CMS.CMSHelper.TreeHelper.SelectSingleNode(Convert.ToInt32(Eval("NodeParentID"))).DocumentName %>