[xwiki-users] Customizing editcomment at the space level
sergiu at xwiki.com
Fri Mar 26 12:14:46 UTC 2010
I looked at the code, and it seems that while this configuration is
supposed to work, it only works on a global level, not on each space.
On 03/26/2010 11:04 AM, GeLo wrote:
> In fact, the subject is not so easy and after 2 hours of several tries, I
> give up with this.
> I can say that the xwiki.cfg works fine.
> 2010/3/23 GeLo<le.genie.logiciel at gmail.com>
>> I only added the property I need : "editcomment_suggested" and I commented
>> the value in xwiki.cfg.
>> Now, whatever the value is in the object editor, even when the property is
>> unset (empty string), the suggestion is always available.
>> I restarted XWiki but it has no effect.
>> Are you sure that the property has to be defined as a Sting ?
>> Are there special values to set (other than 0 or 1) ?
>> The XWiki release is 2.2.27100
>> 2010/3/22 Sergiu Dumitriu<sergiu at xwiki.com>
>> On 03/22/2010 06:02 PM, GeLo wrote:
>>>> I have enabled the editcomment in my xwiki.cfg file.
>>>> It works fine, it is a smart feature.
>>>> Now, I want to disable it for a specific Space of the wiki.
>>>> In the Admin Guide, I found the following :
>>>> "You can use the special fields in *XWikiPreferences* object instead of
>>>> *xwiki.cfg*. These fields are: *editcomment*, *editcomment_mandatory*, *
>>>> editcomment_suggested* and *editcomment_hidden*."
>>>> Is it possible to apply theses special fields in the WebPreferences of a
>>>> space ? When I edit the XWiki object, I do not see any editcomment
>>> field. Do
>>>> I have to add it ? Is there any document that describes this ?
>>> Yes, you have to add those fields to the class. This means editing the
>>> XWiki.XWikiPreferences class, adding the new properties as
>>> StringProperty-s, then editing the WebPreferences document using the
>>> object editor.
>>>> Thank you for your help.
More information about the users