GetSimple Support Forum
[Resolved] Autosave doesn't work ? - Printable Version

+- GetSimple Support Forum (http://get-simple.info/forums)
+-- Forum: GetSimple (http://get-simple.info/forums/forumdisplay.php?fid=3)
+--- Forum: General Questions and Problems (http://get-simple.info/forums/forumdisplay.php?fid=16)
+--- Thread: [Resolved] Autosave doesn't work ? (/showthread.php?tid=4729)



[Resolved] Autosave doesn't work ? - krysttof - 2013-05-10

Hello,
I try to use the autosave, but the pages are not saved !
In my gsconfig.php, at the ligne 64, I have :
PHP Code:
define('GSAUTOSAVE'60); 
, without #.
I save the file.
I open a page.
The counter is display : Autosaving is ON (60 s).
I modified the page.
I have the message : Page sauvegardée automatiquement à 5:31 PM.
If I quit the page and if I open it again, the changes are not saved !
Why ?
Where is my mistake ?
Thank's for help !


RE: Autosave doesn't work ? - shawn_a - 2013-05-10

They are saved as drafts to the autosave directory.
This is still experimental.

To enable it to save as pages, you can modify changedata.php
and remove the GSAUTOSAVEPATH. part
PHP Code:
        if (isset($_POST['autosave']) && $_POST['autosave'] == 'true') {
            
XMLsave($xmlGSAUTOSAVEPATH.$url);
        } else {
            
XMLsave($xml$file);
        } 

In fact you can probably remove the whole block of code
and replace with just
XMLsave($xml, $file);


RE: Autosave doesn't work ? - krysttof - 2013-05-10

OK for experimental mode, I do not know.
Thank's for the code !