After some research I have found that Search Core Results will be a perfect tool to do that.
- Go to a page that you would like to show people's blog posts (the most recent 3 in my case) and add new Search Core Results
- Select Edit Web Part
- Inside Location Properties
- Change Location to Local Search Results (make sure your Search Application is running and has been crawling your my sites).
- Type in number of results you would like to see under "Results Per Page"
- Inside "Results Query Options"
- Change "Cross-Web Part query ID" to "Query 2"
- Enter
contenttype:post AND NOT Title:"Welcome to your Blog!"
in "Fixed Keyword Query" - Click Apply/OK and you are Done!
Note: The reason why "Welcome to your Blog!" is stated as part of the query is to stop who is blogging showing people that have just created their my sites. "Welcome to your Blog!" is default blog thats automatically created by Share Point 2010
You can also fiddle with other settings such as cache and auto refresh. My next task is to make this look like all our other webparts (look & feel).
Some references:
http://msdn.microsoft.com/en-us/library/ff394509.aspx
http://msdn.microsoft.com/en-us/library/ee872310.aspx
Some references:
http://msdn.microsoft.com/en-us/library/ff394509.aspx
http://msdn.microsoft.com/en-us/library/ee872310.aspx
To be continued...
No comments :
Post a Comment