Hi Stefan,

Yes you can. In my case, based on a user, its group and its rights, i display 
different links and pictures.
It's easy to do in the source of the panel that you want to customize

Ex:

#if($xwiki.exists("BankingLexicon.WebHome"))
<div style="margin-bottom: 
${marginbottom}px">{image:lexicon.png|align=absmiddle|document=Panels.QuickLinks}&nbsp;&nbsp;[Banking
 lexicon>BankingLexicon.WebHome]</div>
#end

#if($xwiki.getUser().isUserInGroup("XWiki.GlobusAstreintes") && 
$xwiki.exists("Astreintes.WebHome"))
<div style="margin-bottom: 
${marginbottom}px">{image:astreintes.png|align=absmiddle|document=Panels.QuickLinks}&nbsp;&nbsp;[Astreintes>Astreintes.WebHome]</div>
#end

You can also display or not a panel based on test :

#if ($xwiki.hasAdminRights())
#panelheader('Administrate')
#set($marginbottom=3)
<div style="margin-bottom: 
${marginbottom}px">{image:new.png|align=absmiddle|document=Panels.Administrate}&nbsp;&nbsp;[Create
 new page/space>Panels.NewPage]</div>
#panelfooter()
#end 

If the user does not have admin rights, nothing will be displayed

Christophe Périnaud
Windows Server 2003 SP2 in a VMWare instance
Oracle 10g
Java 1.6.0_12
Xwiki 2.0.3 from the pack Jetty/HSQL




> -----Message d'origine-----
> De : users-boun...@xwiki.org [mailto:users-boun...@xwiki.org] 
> De la part de stefan bachert
> Envoyé : mercredi 17 février 2010 10:05
> À : users@xwiki.org
> Objet : [xwiki-users] Panels
> 
> Is there a way to set panels different per user capability?
> 
> Stefan Bachert
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Sie sind Spam leid? Yahoo! Mail verfügt über einen 
> herausragenden Schutz gegen Massenmails. 
> http://mail.yahoo.com 
> _______________________________________________
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
> 
--------------------------------------------------------------------------------

This e-mail is intended only for the addressee named above. It does not bind 
the sender, except in the case of an existing written convention with the 
addressee. This e-mail may contain material that is confidential and privileged 
for the sole use of the intended recipient. Any review, reliance or 
distribution by others or forwarding without express permission is strictly 
prohibited and may be unlawful. If you are not the intended recipient, please 
contact the sender and delete all copies.

While reasonable precautions have been taken to ensure that this e-mail and any 
attachments are free from any computer virus or similar defect, no liability 
will be accepted in that respect. Anyone accessing this e-mail must take their 
own precautions as to security and virus protection.

KBL European Private Bankers S.A., 43 boulevard Royal L-2955 Luxembourg, R.C.S. 
Luxembourg B 6395, T (352) 47 97 1
_______________________________________________
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users

Reply via email to