XH 1.6: add restore functionality
XH 1.6: add restore functionality
Hello Community,
in classic CMSimple it was always possible to restore a backup of the content in the backend by simply viewing this backup, copying it to the clipboard and than editing the current content and overwriting it with the clipboard contents. This functionality was removed from CMSimple_XH because of the additional pagedata file.
In CMSimple SE there's an explicit restore functionality, and for XH the Restore_XH plugin is available.
Nevertheless IMO at least a minimal restore possibility should be offered by the core of CMSimple_XH. If the pagedata will be stored in content.htm it's possible to restore backups the way it was possible in classic CMSimple, what would be enough IMO. An extended functionality could still be offered by plugins. But if the pagedata keeps in a separate file, we should consider to add some kind of restore functionality to the core (the one of Restore_XH might be reused).
Christoph
in classic CMSimple it was always possible to restore a backup of the content in the backend by simply viewing this backup, copying it to the clipboard and than editing the current content and overwriting it with the clipboard contents. This functionality was removed from CMSimple_XH because of the additional pagedata file.
In CMSimple SE there's an explicit restore functionality, and for XH the Restore_XH plugin is available.
Nevertheless IMO at least a minimal restore possibility should be offered by the core of CMSimple_XH. If the pagedata will be stored in content.htm it's possible to restore backups the way it was possible in classic CMSimple, what would be enough IMO. An extended functionality could still be offered by plugins. But if the pagedata keeps in a separate file, we should consider to add some kind of restore functionality to the core (the one of Restore_XH might be reused).
Christoph
Christoph M. Becker – Plugins for CMSimple_XH
Re: XH 1.6: add restore functionality
The generation backup functionality is one of the major advantages CMSimple has in regard to many bigger CMS System.cmb wrote:If the pagedata will be stored in content.htm it's possible to restore backups the way it was possible in classic CMSimple, what would be enough IMO. An extended functionality could still be offered by plugins. But if the pagedata keeps in a separate file, we should consider to add some kind of restore functionality to the core (the one of Restore_XH might be reused).
Since also the simple user should be able to restore a certain snapshot, IMHO the restore function like restore_XH should be a core function. In addition it would be a supplement if we also could restore single pages the classical way (copy/paste), this is simple but effective for the experienced user.
regards
manu
Re: XH 1.6: add restore functionality
I assume you mean, even if the content and pagedata will be stored in a single file, there should a button to restore a backup. Well, why not?manu wrote:Since also the simple user should be able to restore a certain snapshot, IMHO the restore function like restore_XH should be a core function.
What would require merging content and pagedata.manu wrote:In addition it would be a supplement if we also could restore single pages the classical way (copy/paste), this is simple but effective for the experienced user.
Christoph M. Becker – Plugins for CMSimple_XH
Re: XH 1.6: add restore functionality
Yes. Every user is a beginner one time. Until one gets used to <h1-3>, it's a great help just to restore to the last version with one single click, or do I miss another possibility?cmb wrote:I assume you mean, even if the content and pagedata will be stored in a single file, there should a button to restore a backup. Well, why not?manu wrote:Since also the simple user should be able to restore a certain snapshot, IMHO the restore function like restore_XH should be a core function.
As I have seen in content.htm, the content & pagedata are close together. For a experienced user it might be a effective task by copy/paste this part into the soucecode of a certain page (needs a passage in the "Advanced" documentation).What would require merging content and pagedata.manu wrote:In addition it would be a supplement if we also could restore single pages the classical way (copy/paste), this is simple but effective for the experienced user.
manu
Re: XH 1.6: add restore functionality
ACK.manu wrote:Every user is a beginner one time. Until one gets used to <h1-3>, it's a great help just to restore to the last version with one single click
You're probably referring to the 1.6wedding dev preview. It's not yet decided, if this will be done so in XH 1.6. But your use case is one of the advantages of this solution.manu wrote:As I have seen in content.htm, the content & pagedata are close together.
Christoph M. Becker – Plugins for CMSimple_XH
Re: XH 1.6: add restore functionality
+1cmb wrote:manu wrote:Every user is a beginner one time. Until one gets used to <h1-3>, it's a great help just to restore to the last version with one single click
ACK.
Holger
Re: XH 1.6: add restore functionality
Hello Community,
I've implemented the basic (r458). On the settings page besides each backup there's now a restore button (well, actually it is below; this should be adjusted with CSS). Pressing this button causes the current content to be backed up as usual, and the selected backup to replace the current content.
After the restore a redirect is necessary to cater for the changed content. So it's not possible to emit error resp. success messages directly. Well, in case of errors it's not necessary to redirect, so these could be displayed as usual via e(). But how to handle the success message? Basically it's the same as with saving the configuration, see http://cmsimpleforum.com/viewtopic.php?f=29&t=5567 for further discussion of this issue.
Christoph
I've implemented the basic (r458). On the settings page besides each backup there's now a restore button (well, actually it is below; this should be adjusted with CSS). Pressing this button causes the current content to be backed up as usual, and the selected backup to replace the current content.
After the restore a redirect is necessary to cater for the changed content. So it's not possible to emit error resp. success messages directly. Well, in case of errors it's not necessary to redirect, so these could be displayed as usual via e(). But how to handle the success message? Basically it's the same as with saving the configuration, see http://cmsimpleforum.com/viewtopic.php?f=29&t=5567 for further discussion of this issue.
I'm not sure, if a single click is actually the best way. Perhaps we should better add a simple JS confirmation?manu wrote:it's a great help just to restore to the last version with one single click
Christoph
Christoph M. Becker – Plugins for CMSimple_XH
Re: XH 1.6: add restore functionality
BTW: shall we remove the general settings page (it's not obvious that clicking "Settings" directly is possible anyway), and replace it with the backup/view/restore information only (IOW: remove the first part of the page), and make that an additional item under Settings?
Christoph M. Becker – Plugins for CMSimple_XH
Re: XH 1.6: add restore functionality
May be not necessary to remove it, doesn't hurt, although one doesn't expect it.
However I'd add an item "Backup" to the dropdown list so it's easy to find.
svasti
However I'd add an item "Backup" to the dropdown list so it's easy to find.
svasti