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!
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!
Thanks for the info!
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.
Great, I will try this out! Thanks!
Tried it, and it didn't work.
This is my code for the area:
Is there a different code for what you did?
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?
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