setBlockLimit not working after upgrade to 5.6.0.1 from 5.5
Permalink
did something change with this update?
<?php
$a = new Area('Test');
$a->setBlockLimit(1);
$a->display($c);
?>
please advise! thanks.
<?php
$a = new Area('Test');
$a->setBlockLimit(1);
$a->display($c);
?>
please advise! thanks.
this worked for mehttp://www.concrete5.org/community/forums/usage/how-to-get-rig-of-a...
The link "Add To Test" is still there, but if you click on it, you'll only see one menu item. That's because the design menu for the area can still be in use. I agree that it's a bit misleading to have "Add To.." while you can't add any blocks, but I think it makes sense the way it is.
I think it was intended that the area controls are completely hidden if the design menu is disabled, but from what I've seen, it will only show you an empty menu.
Maybe in a future version you can add this:
and use setBlockLimit to get rid of the area controls..