This is how i figured it out if we want to do it for all users except admin, open docextra.vm and replace #if ($showhistory) with #if ($xcontext.user=="XWiki.Admin" && $showhistory). This will ensure history section shows up only for admin user. On Wed, Jul 11, 2012 at 3:37 PM, mohit gupta <[email protected]> wrote:
Thanks Ecaterina. Actually i want to do hide it for all users except admin user. With the solution you suggested, it hides the history section for all users including admin. Is there a way i can hide history section for all users except admin.
On Wed, Jul 11, 2012 at 3:23 PM, Ecaterina Moraru (Valica) < [email protected]> wrote:
Hi,
Administration > Look&Feel > Page Elements > Document metadata visibility
Show History should work.
Thanks, Caty
On Wed, Jul 11, 2012 at 12:32 PM, mohit gupta <[email protected]> wrote:
Hi All,
I want to hide history section which i see between attachments and information section. As per link i tried using below code snippet at various places(like view.vm,menuview.vm and xwikivars.vm) but nothing worked. I am on wiki 3.5. #set ($showhistory = "no")
Could you point me how to hide the history section from wiki? _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users