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.

 
Remo replied on at Permalink Reply
Remo
I know it's been a while since you've posted this but I think I know why you (and others) think it's broken.

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:
define('ENABLE_CUSTOM_DESIGN', false);


and use setBlockLimit to get rid of the area controls..
johnkidd replied on at Permalink Reply
johnkidd