cancel
Showing results for 
Search instead for 
Did you mean: 

Avatar in blog posts

efestione
Champ in-the-making
Champ in-the-making
Hi, I am currently using Share 3.2r2 and testing Share 3.3 (the nightly build of March, the 24th).
When I post a blog entry my avatar doesn't appear, while when I comment it appears.
My question is: is there a setting to change in order to display my avatar in my posts or, simply, this is not possible?
Thank you
Ale
1 REPLY 1

efestione
Champ in-the-making
Champ in-the-making
I found the solution (applies to Alfresco 3.4.d) and I report it here for future reference.

In file share/components/blog/postview.js

I added
html += '<div class="authorPicture">' + Alfresco.util.people.generateUserAvatarImg(data.author) + '</div>';

in function:
renderBlogPost: function BlogPostView_renderBlogPost(data)

between

// content
         html += '<div class="nodeContent">';
and

html += '<div class="nodeTitle"><a href="' + postViewUrl + '">' + $html(data.title) + '</a> ';

Then, because I did not want to generate the new postview-min.js, I followed the istructions reported here:
http://forums.alfresco.com/en/viewtopic.php?f=48&t=23604

ie, I simply copied postview.js in postview-min.js.

I know … this is not the best way to achieve this  :wink: