Kevin_C wrote:
Using the example @:
http://www.xwiki.org/xwiki/bin/view/FAQ/Howtodisablecommentsandattachments
I am able to remove all of the sections at the bottom of pages, Comments,
Attachments, History and Information. Now what I would like to do is show
some of these items conditionally based on the users permissions.
Would I do this via the "Custom Display" option in the class editor?
How would I access the properties within the class? Something like:
#if($hasAdmin || $hasSpaceAdmin)
showcomments = "yes"
#else
showcomments = "no"
#end
Would I use a #set directive to set the property
Yes :
#if($hasAdmin || $hasSpaceAdmin)
#set($showcomments = "yes")
#else
#set($showcomments = "no")
#end
Jerome.
or is there something else
I need to do in order to set this value? Is this even the right place for
this type of action?
Thanks in advance!
.:. Kevin