HowCanIMakeContentAppearOnlyForASpecificGroup

Last modified by Sergiu Dumitriu on 2010/02/02

Question How can I make content appear only for a specific group?
Answer In syntax 2.0:
{{velocity}}
#if($xwiki.getUser().isUserInGroup('XWiki.PrivateGroup'))
Put the private content here.
#end
{{/velocity}}

In syntax 1.0:

#if($xwiki.getUser().isUserInGroup('XWiki.PrivateGroup'))
Put the private content here.
#end
Tags:
Created by Sergiu Dumitriu on 2010/02/02
    

Get Connected