infinitered / thesis-phoenix

A lightweight, bolt-on, intuitive content editing system for Elixir/Phoenix websites. Star this repo and follow along with our progress!
Other
645 stars 62 forks source link

Create a backup of initial (placeholder) content. #146

Open yulolimum opened 6 years ago

yulolimum commented 6 years ago

Right now, the first revision in the backup system is a snapshot of the content after the very first page Save. This is good; however, we lose all content (default / placeholder content) that was there before the first Save. The only way to get it back is to change the content IDs for all areas on the page in the code. It would be nice to have a copy of the content in the database.

jamonholmgren commented 6 years ago

I can't think of a really simple way to accomplish this offhand. Do you have any ideas?

jamonholmgren commented 6 years ago

Actually, I suppose we could delete all revisions. That would "reset" the page entirely. I kind of like the idea of doing this, but we would need to make it hard to do accidentally.

yulolimum commented 6 years ago

@jamonholmgren I actually disagree. The whole point of revisions is to have a history. Deleting all revisions just to get to "version 1" is counterproductive IMO. Also, you'd actually have to delete the Page and PageContents in order to go all the way back to placeholder.

jamonholmgren commented 6 years ago

Understand, yeah. Any ideas? I don't want something janky.