Site structure
Version 5.x > Site structure > Show Blog's author's image on blog View modes: 
User avatar
Member
Member
gaurav.agrawal-octalsoftware - 12/26/2011 5:06:15 AM
   
Show Blog's author's image on blog
I am working on blogs and my requirement is that i want to show author's avatar image on the blog. I have successfully show author's full name by using
BlogFunctions.GetUserFullName(Eval("NodeOwner"))

function but how can i show author's avatar image or user picture on blog?

User avatar
Kentico Support
Kentico Support
kentico_radekm - 12/26/2011 11:31:54 AM
   
RE:Show Blog's author's image on blog
Hello.

BlogFunctions class does not contain method for display user's avatar, but you can get it via API and GetUserAvatarImage() method. Please see our API reference file for more info about this method. Please note you can call this API in custom macro or custom function in transformation. Both are described in our Developer's guide.

Best Regards,
Radek Macalik

User avatar
Member
Member
gaurav.agrawal-octalsoftware - 12/26/2011 10:39:29 PM
   
RE:Show Blog's author's image on blog
Sir please can you give me an example to apply this...

I want to apply this in blogpost transformation section....

Thanks
Gaurav

User avatar
Member
Member
kentico_michal - 12/26/2011 11:03:15 PM
   
RE:Show Blog's author's image on blog
Hello,

Please take a look at the following section from Developer's guide in which you can see an example of the GetUserAvatarImage method: Displaying avatars in transformations.

Best regards,
Michal Legen