setBlockLimit in Layout?

Permalink
Is it possible to force a blocklimit within a layout? I would like to be able to restrict the user to only adding one area within each row created by the layout.

I can add this to the area in my theme pages:
$a->setBlockLimit(1);

But I can't seem to find a way to enforce that if I add a layout to that divide that area...

Thanks

 
Metaglyphics replied on at Permalink Reply
Anybody know?
Job replied on at Permalink Reply
Job
Interesting question...

Looking at the Area and Layout classes, I can't see any consideration for this, or a way to disable Layouts.

But by adding a layout, that would suggest you want more than 1 block, maybe disabling adding layouts would be a better option, but I can't see that that is available to do either.

Not sure, sorry op ...

Here are the two class files ..

https://github.com/concrete5/concrete5/blob/5.5.2-devel/web/concrete...

https://github.com/concrete5/concrete5/blob/5.5.2-devel/web/concrete...

Job.