Re: [xwiki-users] How set "Is minor edit" default value to be enabled?
Sometimes I spend weeks to finish some docs, and it will generate dozens of versions when I forgot to enable "Is minor edit". How can I set the default value of "Is minor edit" to "true"? Under the xwiki root folder >> Templates, I found the editactions.vm file. I had to replace the line #if($request.minorEdit)checked="checked"#end TO checked="checked" That seems to set the minor edit box to checked for all the pages. I prefer it this way since on my wiki instance there are on an average 60-100 articles being added daily and almost equal number being edited throughout the day. Most people tend to forget that the changes they are making is a minor edit (epecially when they are making minor edits because of time constraint). I have realised that it may not be a good idea to make changes to the vm files. However, I've also not come across any side effect of enabling the minor edit so far.
On Aug 20, 2009, at 12:59 PM, Dilipkumar Jadhav wrote:
Sometimes I spend weeks to finish some docs, and it will generate dozens of versions when I forgot to enable "Is minor edit". How can I set the default value of "Is minor edit" to "true"?
Under the xwiki root folder >> Templates, I found the editactions.vm file. I had to replace the line #if($request.minorEdit)checked="checked"#end TO checked="checked" That seems to set the minor edit box to checked for all the pages. I prefer it this way since on my wiki instance there are on an average 60-100 articles being added daily and almost equal number being edited throughout the day. Most people tend to forget that the changes they are making is a minor edit (epecially when they are making minor edits because of time constraint). I have realised that it may not be a good idea to make changes to the vm files. However, I've also not come across any side effect of enabling the minor edit so far.
The only side effect is that you'll need to merge your change when you upgrade. You could also maybe use a JSX skin extension instead. See http://platform.xwiki.org/xwiki/bin/view/DevGuide/SkinExtensionsTutorial Thanks -Vincent
Dilipkumar Jadhav wrote:
Sometimes I spend weeks to finish some docs, and it will generate dozens of versions when I forgot to enable "Is minor edit". How can I set the default value of "Is minor edit" to "true"?
Under the xwiki root folder >> Templates, I found the editactions.vm file. I had to replace the line #if($request.minorEdit)checked="checked"#end TO checked="checked" That seems to set the minor edit box to checked for all the pages. I prefer it this way since on my wiki instance there are on an average 60-100 articles being added daily and almost equal number being edited throughout the day. Most people tend to forget that the changes they are making is a minor edit (epecially when they are making minor edits because of time constraint). I have realised that it may not be a good idea to make changes to the vm files. However, I've also not come across any side effect of enabling the minor edit so far.
This is the right solution, I was about to reply to your mail with the same answer. The problem with changing a .vm is that you must remember to change it after each upgrade. To avoid having to do this, you can upload the changed file as an attachment to the skin document (by default it is XWiki.DefaultSkin). -- Sergiu Dumitriu http://purl.org/net/sergiu/
participants (3)
-
Dilipkumar Jadhav -
Sergiu Dumitriu -
Vincent Massol