Area question

Permalink
Hello

Is it possible to limit to one Area in edit mode? I mean when someone add something to the Area no other "Add to this area" will appear in the edit mode.

$as = new Area('Sidebar');
$as->display($c);

1 Attachment

marius
 
madeforspace replied on at Permalink Reply
madeforspace
marius replied on at Permalink Reply
marius
Thank you but,

No not with permission. It is allowed for all users to add one block but not more then one block.

It destroys the design in the edit mode. I can do it with if($c->isEditMode()){} but yeahh it looks not so nice ; )
12345j replied on at Permalink Best Answer Reply
12345j
$as->setBlockLimit (1);
marius replied on at Permalink Reply
marius
Thank you! Thats it! : )