[pmwiki-users] Should $EnableNotSavedWarning be enabled by default?

Jake D. Parsons jakedp at posteo.net
Sat Jan 8 10:57:44 PST 2022


On 1/4/22 3:22 AM, Petko Yotov wrote:
> Currently by default PmWiki doesn't warn when people edit a page, and 
> try to move away from the edit form without saving.
> 
> We have $EnableNotSavedWarning but it needs to be enabled in config.php 
> by the administrator.
> 
> I added it to sample-config.php, but I wonder if instead we should 
> simply enable it by default.
> 
> I believe the setting dramatically improves the user experience and 
> saves a lot of frustration, especially with inexperienced editors and 
> administrators (who have yet to read the documentation and enable the 
> setting).
> 
> The setting, enabled, might possibly interfere with some custom edit 
> forms, although I am not aware of such a case, or with some of the 
> existing recipes that do exactly this.
> 
> If we enable it by default, anyone who doesn't need this feature can 
> disable it with
> 
>    $EnableNotSavedWarning = 0;
> 
> Even if there might be existing administrators who may be annoyed to add 
> this line when they upgrade, I feel the benefit from having the feature 
> enabled outweighs the downside.
> 
> Thoughts?
> 
> Petko
> 
> _______________________________________________
> pmwiki-users mailing list
> pmwiki-users at pmichaud.com
> http://www.pmichaud.com/mailman/listinfo/pmwiki-users

I' am for this, it is as you said and makes a better default config. I 
always enable it myself.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_0x24260CF19C8D55BA.asc
Type: application/pgp-keys
Size: 3127 bytes
Desc: OpenPGP public key
URL: <http://www.pmichaud.com/pipermail/pmwiki-users/attachments/20220108/828e876c/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature
Type: application/pgp-signature
Size: 840 bytes
Desc: OpenPGP digital signature
URL: <http://www.pmichaud.com/pipermail/pmwiki-users/attachments/20220108/828e876c/attachment.sig>


More information about the pmwiki-users mailing list