Re: [xwiki-users] how to mask those elements
You could add that code to the view.vm file. If you are running your xwiki instance locally, this is very easy, you simply put it in the file xwiki/skins/colibri/view.vm If you are running a virtual wiki on a wiki farm, you will have to define a custom skin object and put that in the view.vm field in the skin. You may find this helpful. http://dev.xwiki.org/xwiki/bin/view/Drafts/XWikiNewSkin Caleb James DeLisle Bodin Grégory wrote: > > Re- hello ! > >>> I want to hide some elements of wiki users (but accessible for >>> administrator) : >>> >>> -> The history tab, information and attachments to pages. Only tab >>> comment must be accessible. >> See http://bit.ly/3c8O3f > > i manage to do it hidden for all groups except for administrators with this : > > #if ($xwiki.hasAdminRights())#set ($showcomments = "yes") > #set ($showattachments = "yes") > #set ($showhistory = "yes") > #set ($showinformation = "yes")#else#set ($showcomments = "no") > #set ($showattachments = "no") > #set ($showhistory = "no") > #set ($showinformation = "no")#endNow i want this to be automatic on every > pages of the wiki, or every page i will create.How could i do ? Is there a > way to choose for every page, without having to manually enter the code ? > Thanks ! > _ > Un avatar à votre image ? Créez votre mini-moi ! > http://www.ilovemessenger.fr/minimize-me/ > ___ > users mailing list > users@xwiki.org > http://lists.xwiki.org/mailman/listinfo/users > ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] how to mask those elements
Re- hello ! > > I want to hide some elements of wiki users (but accessible for > > administrator) : > > > > -> The history tab, information and attachments to pages. Only tab > > comment must be accessible. > > See http://bit.ly/3c8O3f i manage to do it hidden for all groups except for administrators with this : #if ($xwiki.hasAdminRights())#set ($showcomments = "yes") #set ($showattachments = "yes") #set ($showhistory = "yes") #set ($showinformation = "yes")#else#set ($showcomments = "no") #set ($showattachments = "no") #set ($showhistory = "no") #set ($showinformation = "no")#endNow i want this to be automatic on every pages of the wiki, or every page i will create.How could i do ? Is there a way to choose for every page, without having to manually enter the code ? Thanks ! _ Un avatar à votre image ? Créez votre mini-moi ! http://www.ilovemessenger.fr/minimize-me/ ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] how to mask those elements
> > > > > > Hello! > > > > > > > > I want to hide some elements of wiki users (but accessible for > > administrator) : > > > > -> The history tab, information and attachments to pages. Only tab > > comment must be accessible. > > See http://bit.ly/3c8O3f It work fine, but i must insert the code in each page... And administrator can't acces the hidden tabs : is there a way to automate for all page, and for all user except the administrators (or users with edit rights) ? > > > -> The "recent changes" to the main.dashboard (or then simplify to > > see only the records created and updated without avatars or > > attachments). > > Just edit the page and change it. i succeed to delete the avatar, but not the attachments. > > > -> Spaces "shelduler", "stat", "xwiki" and "panel" > > These spaces are already hidden for simple users. Indeed !Thanks again ! > > Thanks > -Vincent > > ___ > users mailing list > users@xwiki.org > http://lists.xwiki.org/mailman/listinfo/users _ Messenger débarque dans Hotmail ! Essayez-le ! http://www.windowslive.fr/hotmail/web-messenger/ ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] how to mask those elements
Seems like you've "hidden" your answer somewhere! :) -Vincent On Oct 2, 2009, at 10:02 PM, Bodin Grégory wrote: > > >> From: vinc...@massol.net >> To: users@xwiki.org >> Date: Fri, 2 Oct 2009 21:33:13 +0200 >> Subject: Re: [xwiki-users] how to mask those elements >> >> Hi, >> >> On Oct 2, 2009, at 9:01 PM, Bodin Grégory wrote: >> >>> >>> >>> Hello! >>> >>> >>> >>> I want to hide some elements of wiki users (but accessible for >>> administrator) : >>> >>> -> The history tab, information and attachments to pages. Only tab >>> comment must be accessible. >> >> See http://bit.ly/3c8O3f >> >>> -> The "recent changes" to the main.dashboard (or then simplify to >>> see only the records created and updated without avatars or >>> attachments). >> >> Just edit the page and change it. >> >>> -> Spaces "shelduler", "stat", "xwiki" and "panel" >> >> These spaces are already hidden for simple users. >> >> Thanks >> -Vincent ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] how to mask those elements
> From: vinc...@massol.net > To: users@xwiki.org > Date: Fri, 2 Oct 2009 21:33:13 +0200 > Subject: Re: [xwiki-users] how to mask those elements > > Hi, > > On Oct 2, 2009, at 9:01 PM, Bodin Grégory wrote: > > > > > > > Hello! > > > > > > > > I want to hide some elements of wiki users (but accessible for > > administrator) : > > > > -> The history tab, information and attachments to pages. Only tab > > comment must be accessible. > > See http://bit.ly/3c8O3f > > > -> The "recent changes" to the main.dashboard (or then simplify to > > see only the records created and updated without avatars or > > attachments). > > Just edit the page and change it. > > > -> Spaces "shelduler", "stat", "xwiki" and "panel" > > These spaces are already hidden for simple users. > > Thanks > -Vincent > > ___ > users mailing list > users@xwiki.org > http://lists.xwiki.org/mailman/listinfo/users _ Inédit ! Des Emoticônes Déjantées! Installez les dans votre Messenger ! http://www.ilovemessenger.fr/Emoticones/EmoticonesDejantees.aspx ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] how to mask those elements
Hi, On Oct 2, 2009, at 9:01 PM, Bodin Grégory wrote: > > > Hello! > > > > I want to hide some elements of wiki users (but accessible for > administrator) : > > -> The history tab, information and attachments to pages. Only tab > comment must be accessible. See http://bit.ly/3c8O3f > -> The "recent changes" to the main.dashboard (or then simplify to > see only the records created and updated without avatars or > attachments). Just edit the page and change it. > -> Spaces "shelduler", "stat", "xwiki" and "panel" These spaces are already hidden for simple users. Thanks -Vincent ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] how to mask those elements
Hello! I want to hide some elements of wiki users (but accessible for administrator) : -> The history tab, information and attachments to pages. Only tab comment must be accessible. -> The "recent changes" to the main.dashboard (or then simplify to see only the records created and updated without avatars or attachments). -> Spaces "shelduler", "stat", "xwiki" and "panel" thanks for your help ! _ Découvrez toutes les possibilités de communication avec vos proches http://www.microsoft.com/windows/windowslive/default.aspx ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users