Disabling "Add to Block", etc.

Permalink
I know there is a way to disable the "Add to Block" function, but is there a way to make it so that if that one block area is ever deleted, an "Add Block" option will appear?

So essentially an ADDITIONAL block can never be added, but if the existing block is ever deleted by the user, it can be easily created.

Thanks!

stephmars
 
Remo replied on at Permalink Reply
Remo
I think this is a bug we've got in Concrete5 for quite some time..

When you restrict the block numbers for an area the AJAX code doesn't add "Add to <Area>". I think it happeneded with the introduction of AJAX block handling stuff.

I'd report this as a bug if no one else did
stephmars replied on at Permalink Reply
stephmars
Thanks for the info!
jeramy replied on at Permalink Reply
jeramy
On the sites I've implemented a block limit, once I delete a block, I just need to refresh the page while in edit mode and the 'Add to Block' appears again. Not the most elegant solution, but it works.
stephmars replied on at Permalink Reply
stephmars
Great, I will try this out! Thanks!
stephmars replied on at Permalink Reply
stephmars
Tried it, and it didn't work.

This is my code for the area:

<?php
$a = new Area('Module Header Title 1');
$a->disableControls();
$a->display($c);
?>


Is there a different code for what you did?