Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2017-03-21 01:06:03

esupergood
New Member
Registered: 2008-10-22
Posts: 6

Editing important pages and there is no "undo" feature

I’m sure this has been covered but I couldn’t find anything helpful.
It’s frustrating to make changes to pages or articles and I have to click SAVE before I can see the changes. If I don’t like the changes I can’t click undo.

What’s the workaround.

The other day I accidentally wiped clean my main homepage page and clicked save. It was gone. So many hours work, vanished with no undo option. Thankfully I had backed it up offline but this was really luck.

Can I work on the files offline and then upload them with FTP so that my working files are always offline?

Offline

#2 2017-03-21 03:07:27

bici
Member
From: vancouver
Registered: 2004-02-24
Posts: 1,032
Website

Re: Editing important pages and there is no "undo" feature

I totally agree. I hear that the Rah_Flat plugin allows one to work on all the files as flat files using your favourite file editor … but i have yet to try it out.

I found that the best solution and very fool proof is the Mountee application used with Expression Engine sites.

I am not sure that Rah_Flat has achieved that level of robustness, but one day I will give Rah_Flat a real test drive.


…. texted postive

Offline

#3 2017-03-21 08:24:59

jakob
Moderator
From: Germany
Registered: 2005-01-20
Posts: 2,561
Website

Re: Editing important pages and there is no "undo" feature

rah_flat or it’s spin-off oui_flat allow you to work on pages, forms and styles (oui_flat also sections and custom preferences) as files using your own text editor and pulls the changes you make into the database. That allows you to work on your computer on a copy of the site (using something like MAMP or XAMPP or your own favourite local webserver) until you are happy and then upload changes. It replaces all pages, forms, etc. wholesale so you need to first make a copy of your database and export your existing templates using something like jcr_export_txp_templates. From then on it works fine and reliably. If you want you can track changes you make to your template files using a version control system such as git or svn, or your own backup routines.

That doesn’t handle articles, though. There is also rah_post_versions (older version and newer version) which was designed for what you want (I think). You’ll need to check which version matches your installation. Gocom may be able to advise…

Finally, there’s also a preview function on the write tab itself. It doesn’t show you the article in its proper page context, but will show you how your textile renders.


TXP Builders – finely-crafted code, design and txp

Offline

#4 2017-03-21 08:35:09

etc
Developer
Registered: 2010-11-11
Posts: 2,171
Website

Re: Editing important pages and there is no "undo" feature

FWIW, all text fields in 4.7 are saved via AJAX requests, without page reloading. Hence the browsers “Undo” feature will be available, at least.


etc_[ query | search | pagination | date | tree | cache ]

Offline

#5 2017-03-21 09:13:01

philwareham
Core designer
From: Farnham, Surrey, UK
Registered: 2009-06-11
Posts: 2,673
Website

Re: Editing important pages and there is no "undo" feature

I think all the recent commits Makss has done allows for the possibility of article imports in the future. I need to get my head around what exactly is available now – and I think Stef is working out how Makss work can be utilised for themes features (although I assume flat file articles are lower priority for now than flat file theme templates).

Plus there is the stuff Jukka and Nicolas have done with their *_flat plugins that maybe can form part of the above too. Again, it needs some serious thought, but exciting times.

Offline

#6 2017-03-21 13:39:41

uli
Moderator
From: Cologne
Registered: 2006-08-15
Posts: 3,882

Re: Editing important pages and there is no "undo" feature

I want to mention one of my most installed plugins, rss_admin_db_manager with its copy-machine-like simplicity: Save after editing (or immediately before) with just 1 click, restore with one click.


In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links

Offline

#7 2017-03-21 16:16:34

bici
Member
From: vancouver
Registered: 2004-02-24
Posts: 1,032
Website

Re: Editing important pages and there is no "undo" feature

jakob wrote #304958:

That doesn’t handle articles, though. There is also rah_post_versions (older version and newer version) which was designed for what you want (I think). You’ll need to check which version matches your installation. Gocom may be able to advise…

I hope that all this gets finalized into ONE plugin. I never know which version to download t try and so i don’t bother…

This past week or so i have been wondering about certain option of viewing a form while in the Txp Panel. Say i make a few changes to my form, it would be nice if there was a View / Render form that would allow one to see the final form as a webpage. Actual changes to the Form are not made/saved and one can roll back or continue to make changes and previewing. …


…. texted postive

Offline

Board footer

Powered by FluxBB