Personal tools
You are here: Home Products Ploneboard Documentation Ploneboad FAQs How Do I Hide Member Portraits From Conversation Views?
Document Actions

How Do I Hide Member Portraits From Conversation Views?

Up to Table of Contents

This FAQ applies to: 1.0

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.
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>


by Jon Stahl last modified July 5, 2006 - 00:20

For any issues with the web site functionality, please file a ticket.

Please consult the policy on plone.org content if you want your content published on this site.

Servers and hosting by