specify which block can be used in an area

Permalink
Hi,

I was wondering if the following is possible;
Is it possible to add an area to your website and have the area dictate what kind of block is used in that area
I made a few custom blocks made for specific areas and it would be nice if the user would just have to edit the area to get acces to the block.

i did not find a post of anyone asking so if this was asked before, my apologies

xb385
 
sunraySte replied on at Permalink Reply
sunraySte
Hi, I did a similar thing here,

<?php 
$a = new GlobalArea('Login Block');
$a->setBlockLimit(1);
$a->display();    
?>


It sets the block to be called login, and sets the limit to one (you would still need to add the block in edit mode though. Maybe you could hardcode the block in edit it that way?

I'm sure someone in the concrete community will have answer :)
xb385 replied on at Permalink Reply
xb385
yea thats basically what i'm already doing, naming the area after the block but i would like to make it a little more 'idiot proof' if possible :)