Removing add to in block

Permalink
Is there a way to limit a block so this can't be added to I have seen it somewhere in forum but can't track it down now anyone point me in the right direction

claire
 
LucasAnderson replied on at Permalink Best Answer Reply
LucasAnderson
If you're talking about limiting an Area to a certain numbers of blocks, here's what you need:

<?
   $a = new Area('Content');
   $a->setBlockLimit(1);
   $a->display($c);
?>


The 'X' within setBlockLimit(X); is the maximum number of blocks allowed in an area.
claire replied on at Permalink Reply
claire
all good now
karendunning replied on at Permalink Reply
Where do I find this so I can add more blocks?
karendunning replied on at Permalink Reply
Where do I find this so I can add more blocks?
karendunning replied on at Permalink Reply
Where do I find this so I can add more blocks?
karendunning replied on at Permalink Reply
Where do I find this so I can add more blocks?