I would like to create a Content Search Web Part that displays the user profile picture of each blog entry/creator next to the blog title from a Team Blog site (and roll that up to display the latest 3 blog entries on the teams homepage). What's the best way to do this?

  • 1
    You need to created custom display template according to your requirement and use that display template in you CSWP. – Bhaskar Dhone Dec 16 '15 at 8:29
  • Can I not use a default picture one and point the picture url to the profile? – Razzmos Dec 16 '15 at 9:35
  • I don't think you can do that. – Bhaskar Dhone Dec 16 '15 at 10:06
  • Can you point me in the direction of reference material that shows how to do that? – Razzmos Jan 5 '16 at 17:13
  • blogs.technet.com/b/sharepoint_quick_reads/archive/2013/08/01/… may be this will help you to start with display templates. – Bhaskar Dhone Jan 7 '16 at 7:40

You will have to use the Author information to look up the user profile and then return the User Profile Photo. You can do this with the JavaScript client side object model or with REST. Either way it is not trivial but can be done.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.