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 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 -- View this message in context: http://n2.nabble.com/Conditionally-hiding-content..-tp2147464p2147464.html Sent from the XWiki- Users mailing list archive at Nabble.com. _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
