Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Resolved] Autosave doesn't work ?
#1
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 !
Français et éternel débutant
French and eternal beginner
Reply
#2
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);
NEW: SA Admin Toolbar Plugin | View All My Plugins
- Shawn A aka Tablatronix
Reply
#3
OK for experimental mode, I do not know.
Thank's for the code !
Français et éternel débutant
French and eternal beginner
Reply




Users browsing this thread: 1 Guest(s)