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(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users