Completely removing a block after it's been created

Permalink Browser Info Environment
First off, thanks so much for making this great add-on.

I know that blocks aren't editable via the add-on once they've been created, and that if I've created a custom block that I want to edit, it might be advisable to just create a new block with a different handle instead.

Would you mind providing a list of steps to take if I wanted to completely cleanly remove all traces of a custom block that I created, so that I could use that block's handle when creating a new custom block?

Type: Discussion
Status: New
capsuledesign
View Replies:
jordanlev replied on at Permalink Reply
jordanlev
You're welcome -- glad you like it!

I've made a few changes in recent versions to make this process easier than it was before. So I think now all you have to do is uninstall the block via Dashboard -> Add Functionality, then remove the block directory from your site's top-level "blocks" directory on your server.

If you do that and it gives you trouble, let me know.
herbyderby replied on at Permalink Reply 1 Attachment
herbyderby
I did the uninstall as you say by deleting the directories where you said, but you have to remove the blocks on the page themselves or it throws an error. I made that mistake.

It's missing the controller for the block, thus throws the error.

Now I have no idea how to get the page back! :(
jordanlev replied on at Permalink Reply
jordanlev
When you uninstall blocktypes via the dashboard, C5 is supposed to remove them from the pages they're placed on. This sounds like you might have just deleted the block folder from your server without uninstalling it via the dashboard first. (Although it's also possible C5 didn't do its job properly in removing them from pages).

To fix the problem, you could try installing a new blank site, installing Designer Content, then re-creating the blocktype (giving it the same handle that the old one had). Then copy the block folder on that new site you just made back to your existing site. If the blocktype handle is the same then you should at least be able to view the pages, at which time you can remove the blocks from those pages.

There was another thread recently where people were trying to do this as well... you might try reading through that and seeing if it helps your situation as well:
http://www.concrete5.org/marketplace/addons/designer-content/forums...

Best of luck,
Jordan

concrete5 Environment Information

Browser User-Agent String

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You have not specified a license for this support ticket. You must have a valid license assigned to a support ticket to request a refund.