How Do I Hide Member Portraits From Conversation Views?
Up to Table of ContentsThis FAQ applies to: 1.0
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>