Question How to disable comments and attachments.
Answer Below is text from mail list archive:

http://www.nabble.com/Disable-and-hide-comments-tt13584727.html#a13585583

Marie Sauvage [EBM WebSourcing] wrote:
> Hi all !
>
> I'm trying to disable comments from all users (guests and logged
> users) and then to hide the useless comments zone at bottom of pages.
> I've seen there is some options in the wiki.cfg file but I'm not the
> server admin. Is there a way to do that without having to modify the
> config file and reboot xwiki ? I don't find anything in the
> administration space.
> I've thought to change the layout and remove this zone but I don't
> find it's a "clean" way to do, and maybe later we'll want to
> reactivate comments…
>
> thanks for your help,
> Marie.
«

Hi Marie,

You need to change the XWiki.XWikiPreferences class like this:

  1. Go to <server>/xwiki/bin/edit/XWiki/XWikiPreferences?editor=class
2. Add a new property called showcomments of type String Class 3. Go to <server>/xwiki/bin/edit/XWiki/XWikiPreferences?editor=object&classname=XWiki.XWikiPreferences and write no in the showcomments field

That's it, the comments are gone. If you want to re-enable comments, replace the "no" value with "yes" If you want to disable attaachments, too, do the same with a property named showattachments.

That's it, the comments are gone. If you want to re-enable comments, replace the "no" value with "yes" If you want to disable attaachments, too, do the same with a property named showattachments.

Sergiu

arie Sauvage [EBM WebSourcing] wrote: > Hi again ! > > unfortunately, there is still a detail : the top menu "Show" still gives > access to a comment page with this url : <my > wiki>/bin/view/Main/*?viewer=comments&* > Can it be hidden with parameter or only by modifying menu ? > thanks,

Hi Marie,

I think the only way to do it is to modify the menu.

Version 4.2 last modified by Holger Schrörs on 05/11/2008 at 11:43

Comments 1

Holger Schrörs | 05.11.2008 at 11:43 AM
I can't find this file. Isn't the FAQ updated and reworked when a new Revision comes out? It looks to me the current version does not fit to the FAQ and the UserGuide. Where to get a matching Documentation to the current version?

Attachments 0

No attachments for this document

Creator: Ruslan Shevchenko on 2008/01/12 14:33
This wiki is licensed under a Creative Commons license
1.5.2.12758