Is there anyway to force a certain area to use a certain block type?
for example:
$a = new Area();
$a->setAllowedBlocks(array('autoNave','content'));
$a->display($c)
Is there any thing like: setAllowedBlocks?
Thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Unfortunately there is no way to do this as you asked. It is possible to set the allowable block types by turning on Advanced Permissions:
http://www.concrete5.org/documentation/general-topics/simple-permissions#advanced
But note that this might be overkill for such a simple requirement (depends on how badly you want to restrict the allowable block types for your areas).