[Plone-UI] tabs depending on authentication

Michele Sanguillon Michele.Sanguillon at univ-montp2.fr
Tue Oct 21 14:07:51 UTC 2014


Hello,

I installed a Plone 4.2 website and I woulk like it has the same look  
than my old Plone 3.x one.
In this website, I would like to have portal tabs for anonymous users  
of my website and additional portal tabs for authenticated users.
So as on my old website, I add CMF actions in the Site Setup -> ZMI ->  
portal_actions -> portal_tabs with a condition expression :
ID : InstallationSFTP
Title:        Installation / SFTP
I18n Domaine: plone
URL:          string:$portal_url/DBPollux/SetUpDBPolluxSFTPMain
Condition:     
python:portal.portal_membership.getAuthenticatedMember().has_role('Manager')

My problem is that the condition is only evaluated when I start plone  
and not when somebody logs in or out.

Can somebody help me ?

Thanks in advance,

Michele
-- 
Michèle Sanguillon
Laboratoire Univers et Particules de Montpellier
Université Montpellier II - Place E. Bataillon - Bât. 13 - CC 072
34095 Montpellier Cedex
Tel : +33 (0)4 67 14 93 59 - Fax : +33 (0)4 67 14 41 90




More information about the UI mailing list