Re: [xwiki-users] How set Is minor edit default value to be enabled?

2009-08-20 Thread Dilipkumar Jadhav
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#endTO
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.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] How set Is minor edit default value to be enabled?

2009-08-20 Thread Vincent Massol

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#endTO
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

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] How set Is minor edit default value to be enabled?

2009-08-20 Thread Sergiu Dumitriu
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#endTO
 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/
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] How set Is minor edit default value to be enabled?

2009-08-20 Thread Dilipkumar Jadhav
Thanks for the reply Vincent  Sergiu. I will play around with the skin
extension method to get the same result.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] How set Is minor edit default value to be enabled?

2009-08-20 Thread flyisland
Hi Jadhav, please share solution with me after you make it works, thanks :)

On Fri, Aug 21, 2009 at 8:45 AM, Dilipkumar Jadhav 
jadhav.dilipku...@gmail.com wrote:

 Thanks for the reply Vincent  Sergiu. I will play around with the skin
 extension method to get the same result.
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users




-- 
-
空中的一小块陆地
E-mail: fly.isl...@gmail.com
Blog  : http://flyisland.blogbus.com/
Twitter   : http://twitter.com/flyisland
-
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] How set Is minor edit default value to be enabled?

2009-08-19 Thread Vincent Massol

On Aug 19, 2009, at 6:55 PM, Guillaume Lerouge wrote:

 Hi Fly Island,

 On Wed, Aug 19, 2009 at 6:49 PM, flyisland fly.isl...@gmail.com  
 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?


 I don't know, but that's a good question.

 Food for thought: what about automatically marking edit shorter  
 than, say,
 200 chars as minor edits or something similar?

I wouldn't like that.

We just need proper Draft support.

Temporarily we could also have a setting for having minor edits  
enabled by default (maybe it already exists?).

Thanks
-Vincent

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] How set Is minor edit default value to be enabled?

2009-08-19 Thread Guillaume Lerouge
Hi Fly Island,

On Wed, Aug 19, 2009 at 6:49 PM, flyisland fly.isl...@gmail.com 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?


I don't know, but that's a good question.

Food for thought: what about automatically marking edit shorter than, say,
200 chars as minor edits or something similar?

Guillaume


 --

 -
 空中的一小块陆地
 E-mail: fly.isl...@gmail.com
 Blog  : http://flyisland.blogbus.com/
 Twitter   : http://twitter.com/flyisland

 -
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users




-- 
Guillaume Lerouge
Product Manager - XWiki
Skype: wikibc
Twitter: glerouge
http://guillaumelerouge.com/
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] How set Is minor edit default value to be enabled?

2009-08-19 Thread Vincent Massol

On Aug 19, 2009, at 6:55 PM, Vincent Massol wrote:

 Hi,

 On Aug 19, 2009, at 6:49 PM, flyisland 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?

 In XE 1.9 and above there's a preliminary notion of Draft with an  
 Auto Save feature.
 See 
 http://www.xwiki.org/xwiki/bin/view/Main/ReleaseNotesXWikiEnterprise19#HPreliminarysupportfor7E7EAutosave7E7E

Note that this doesn't answer your question... and it'll create even  
more versions (even though they'll be minor ones)

We need a proper Draft support.

Thanks
-Vincent

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] How set Is minor edit default value to be enabled?

2009-08-19 Thread Vincent Massol
Hi,

On Aug 19, 2009, at 6:49 PM, flyisland 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?

In XE 1.9 and above there's a preliminary notion of Draft with an Auto  
Save feature.
See 
http://www.xwiki.org/xwiki/bin/view/Main/ReleaseNotesXWikiEnterprise19#HPreliminarysupportfor7E7EAutosave7E7E

Thanks
-Vincent
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users