Template switch and loose content


I have several pages based on a template. I change the "Default Page Template" from the "index.php/dashboard/pages/types/edit/" page and every single page based on this template just got away !

Just like that.

Is there anyway to recover all the content beside restoring from backup - which isn't very user friendly at all ?


View Replies:
Gondwana replied on at Permalink Reply
It's possible that the content is still in the database, and isn't being displayed because the new template uses different area names. Try changing the template back to how it was.

...and take another backup (without over-writing your previous backup), just in case things get worse.
Carehaiti replied on at Permalink Reply
I reverted to the previous template but the pages still didn't show up.

I also noticed that it is indeed dangerous to change a page template because of the 99% risk to loose your content.
stewblack23 replied on at Permalink Reply
Your content still exists in the database. You just have to make sure the new template you switched to has the same content areas names you used in the old template.
Carehaiti replied on at Permalink Reply
Would I have to dive into the hard coded templates to check this out ?
Carehaiti replied on at Permalink Reply
Hello @Gondwana and @stewblack23,

Thank you for your quick reply. Both your replies make sense but I have changed the pagetype back to the former template only to notice that my content hadn't come back.

Since it was a quite urgent matter, I restored from the backup I made early in the morning.

And I'll investigate more how can such thing can be avoided, as it may happen to everyone.