Are blocks editable?

Permalink Browser Info Environment
Hi Jordan,

I'm running C5 latest (5.5.1) and Designer Content latest (3.0.2). The project page seems to indicate that you can edit the blocks after you have created them. Is this correct?

I know I can edit in code, but I was expecting an interface similar to the Add new block. I've set permissions in config/site.php as displayed.

I would be grateful if you could shine some light on this,

Thanks,

Paul

Type: Discussion
Status: New
shasha1
View Replies: View Best Answer
shasha1 replied on at Permalink Reply
shasha1
Ignore my post, Reading your documentation more thoroughly explains that Blocks are not editable in the interface - the note about editing permissions is for those who are denied permission uploading locally edited files in code view, it's not about being able to activate an edit interface as I'd hoped! I'll have to keep to the code. Maybe one day there will be an edit block feature? ;-) even if that is available in a 'paid-for' commercial version of Designer Content?

?

Thanks for a great add on. This block has meant I can keep to Concrete5 when I was considering moving to Expression Engine.
jordanlev replied on at Permalink Best Answer Reply
jordanlev
Correct, you cannot edit the block through a web interface after they've been created. And it's not something that will ever be implemented either -- it's not worth the trouble (it's an order of magnitude more complicated than just creating them, and you can just create a new one that contains changes you want if desired).

As for the confusing documentation, I see your point and have changed the wording of that to make it clearer that it's just the code files that can be edited. Thanks for bringing it to my attention.

-Jordan
megant replied on at Permalink Reply
megant
Why is it so complicated? The custom blocks are generated according to custom user settings, right? Just store these settings (db table+json, php array, etc), and when user clicks on edit block, the tool reads stored data, and when user clicks on save, tool uninstall the old block and generates the new one (in the same way as before).
jordanlev replied on at Permalink Reply
jordanlev
Maybe you're correct (although I think there are a lot of details you're glossing over). The code is up on github (https://github.com/jordanlev/c5_designer_content... ), feel free to contribute -- I will gladly merge in pull requests.

-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.