Hi all,
Question:
Is it possible to execute a velocity code on my entire wiki?
Background:
I want to disable comments-attachments-etc for users without editing
rights, but keep it visible for people with editing rights.
Thanks to Ricardo I found this code at
http://www.mailarchive.com/users@xwiki.org/msg13732.html
#if($hasEdit)
  #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")
#end
I put it in a single page and it works perfectly, but I want to use it
for my entire wiki and obviously do not want to put a velocity script
in each and every page.
I hope someone can help me out !
Thanks in advance,
Wouter