Removed Core Block 'Content' in Error

Permalink
Hi,

I removed the core block "Content" in error and have followed the instructions on here with regards to adding it back into /blocks.

This has reinstalled the add on again, I don't however have the page content anymore.

Is there anyway I can reattach the content blocks / pages to the information that I presume is stored in the database?

Thanks.

 
LucasAnderson replied on at Permalink Reply
LucasAnderson
You may have removed all the content when you removed that block, which is most likely the case here. Usually if you haven't removed the content from the database it would pick it back up when the content block was reinstalled.

Do you have a backup?

Sorry about that.
timbo replied on at Permalink Reply
Hi Lucas,

I have checked the database and the content appears to be in the table btContentLocal do you know if this is the correct table?
Mnkras replied on at Permalink Best Answer Reply
Mnkras
the problem is, is that the content is assigned to a block id, when you removed the addon, it removed all the blocks, lets say you had 88 content blocks before you removed the addon, if you add a new block, it will have the id of 89 and the next one will be 90 and so on, since you can't have block id 1 any more, you are going to have to re add everything and just copy and paste stuff out of the table into the content block

Mike
timbo replied on at Permalink Reply
Thanks Mike.

Thought this was the case luckily it wasn't too big a site and I was working locally so nothing major lost.