XWiki - Open Source Wiki and Content-Oriented Application Platform » FAQ » HowCanIMakeContentAppearOnlyForASpecificUser

HowCanIMakeContentAppearOnlyForASpecificUser

Last modified by Sergiu Dumitriu on 2010/02/02
Question How can I make content appear only for a specific user?
Answer In syntax 2.0:
{{velocity}}
#if($context.user == 'XWiki.Admin')
Put the private content here.
#end
{{/velocity}}

In syntax 1.0:

#if($context.user == 'XWiki.Admin')
Put the private content here.
#end
Tags:
Created by Sergiu Dumitriu on 2010/02/02

This wiki is licensed under a Creative Commons license
Powered by XWiki Enterprise 3.4