How Do I Hide Member Portraits From Conversation Views?

By default, Ploneboard shows the member portrait of each commenter, and a generic image for those with no portraits. Some site admins may want to alter this behavior and show no portraits at all.

« Back to Table of Contents

Warning: This item is marked as outdated.
There are two ways to hide member portaits in Ploneboard:

Via CSS

You can hide portraits simply by putting a line in ploneCustom.css or another custom CSS file that reads:
.commentPortrait {
display: none;
}
This is quick and simple, and doesn't modify Ploneboard's code.  There's probably no reason not to simply do this.

Via Modifying the comment_view template

You can also excise member portraits entirely by modifying the "comment_view.pt" template.  You can customize this template through the ZMI by going to portal_skins -> Ploneboard -> ploneboard_templates -> comment_view and clicking "customize."  More adavanced developers may wish to modify this template on the filesystem.


Simply remove the lines
<tal:block define="portrait python:here.portal_membership.getPerson$
<div class="commentPortrait">
<a href="" title="View profile"
 tal:attributes="href string:${portal_url}/author/${creator}"
i18n:attributes="title"
  tal:omit-tag="python:creator=='Anonymous'">
<img class="portraitPhoto"
src="defaultUser.gif"
alt=""
border="0"
width="75"
height="100"
tal:attributes="src portrait/absolute_url" />
</a>
</div>
</tal:block>