Add or edit a block without going into editmode?
Permalink
Is there a way for the users who has write permissions to add or edit a specific blocktype directly on the page without going into edit mode?
Basically I created my own custom block which obviously has add and edit forms. What I want to do is to show edit and delete button at the view layer of the block which will be visible only for the users who has write permissions, and when they click on it, the edit form to be loaded with the regular concrete5 dialog, and finally when they make changes and save it, the changes to be published without any other step.
I don't want them to see the design, copy to scrapbook, etc. options.
Thanks in advance.
Basically I created my own custom block which obviously has add and edit forms. What I want to do is to show edit and delete button at the view layer of the block which will be visible only for the users who has write permissions, and when they click on it, the edit form to be loaded with the regular concrete5 dialog, and finally when they make changes and save it, the changes to be published without any other step.
I don't want them to see the design, copy to scrapbook, etc. options.
Thanks in advance.
Note: I have the necessary Javascripts and Stylesheets on all of my pages
It's not realistically possible to do this. There is, however, one addon available in the marketplace that sounds like it does what you want:
http://www.concrete5.org/marketplace/addons/lerteco-simple-content/...
The level of sophistication in that block is astounding, and the author is obviously a very proficient programmer. But I'm not sure it's something that can feasibly be done for every block in the system (that addon is only a "content" block) -- unless you want to do a *lot* of complex coding.
http://www.concrete5.org/marketplace/addons/lerteco-simple-content/...
The level of sophistication in that block is astounding, and the author is obviously a very proficient programmer. But I'm not sure it's something that can feasibly be done for every block in the system (that addon is only a "content" block) -- unless you want to do a *lot* of complex coding.