Re[Plone-UI] moving the user link from the personal bar

Veda Williams veda at onenw.org
Fri Jul 11 20:13:00 UTC 2008


Hi Danny,

Look in plone.app.layout.viewlets and find personal_bar.pt. You'll see code
here that inserts the user link. To override this, copy the template into
your filesystem product's browser directory and modify as needed. This is a
class-based viewlet, per the configure.zcml file, so you'll need to override
it correctly. 

This tutorial should help:

http://plone.org/documentation/tutorial/customizing-main-template-viewlets/o
verriding-a-class-viewlet

Cheers,

- Veda

On 7/11/08 1:05 PM, "dklinger" <danny.klinger at gmail.com> wrote:

> 
> In plone 3.0 and later,
> 
> the user link in the personal bar will bring you to a dashboard view. This
> is no longer an action that is controlled from portal_actions (with an
> out-of-the-box plone install). This link seems to only be tweakable from the
> viewlet perspective.
> 
> Portal_View_Customizations/Zope.Interface.interface-plone.personal_bar
> 
> <ul id="portal-personaltools"
>     tal:condition="python:view.user_actions or not view.anonymous"
>     class="visualInline">
>    <tal:block condition="not: view/anonymous">
>        <li>   
>             
>                 John
>             </li>
>    </tal:block>
> 
> The text that is bolded seems to control if the link is visible to users.
> The question is, I have a member that I would specifically like to block the
> viewing of this link. Can anyone think of how to make this happen from the
> viewlet template? or anywhere else?
> 
> Any help is appreciated.
> -Dan





More information about the UI mailing list