This project is read-only.

User avatars.

Topics: Customizing Orchard
Mar 18, 2013 at 8:04 PM
Edited Mar 18, 2013 at 8:29 PM
Good Afternoon,

I hope everyone had a nice week-end. I was wondering if there is a way to add user avatars to blog comments? I'm already overriding Parts.Comments, I'm just not sure what I would need to override to get to the individual comment, to add the image. (If it's even possible.)
Mar 18, 2013 at 9:38 PM
One way is to create a custom part that stores the avatar (or a field representing the avatar) and attach that custom part to the User type.
In your overridden comments view, you will have access to the author, which is the user. Since this user is of type User, it will have the custom part attached, from which you can retrieve the avatar.