Restrict block types for Area

Permalink
Is it possible? I googled a lot and found only old info like this

http://stackoverflow.com/questions/10880131/concrete5-force-a-certa...

Is it also possible to print a Block, that can be edited ?

Tnx

 
hutman replied on at Permalink Reply
hutman
Advanced Permissions is still the way to restrict blocks in an area.

Can you explain a little more about your second question, not sure what you are asking.
trsh replied on at Permalink Reply
1) When I do this, I loose ability to edit the block.

$nav = BlockType::getByHandle('autonav');
$nav->controller->orderBy = 'display_asc';
$nav->controller->displayPages = 'top';
$nav->controller->displaySubPages = 'all';
$nav->controller->displaySubPageLevels = 'custom';
$nav->controller->displaySubPageLevelsNum = 1;
$nav->render('view');

Is there some param, to make it editable?

2) Can you please give small step by step, how to limit those blocks for areas with permissions? I can't find these stuff.
hutman replied on at Permalink Reply
hutman
1) If you "hard code" a block into your template, it will not be editable, which is what you are doing by doing it this way. If you want the block to be editable you have to add it into an area as you normally would.

2) Take a look at the last post on this thread for instructions -https://www.concrete5.org/community/forums/customizing_c5/restrictin...
trsh replied on at Permalink Reply
1) Put a page in Edit mode
2) Click on 'Add to Main' (or whatever area you want to restrict)
3) Then choose 'Set Permissions'.

This Fails, as there is no Set permissions in drop-down. Advanced mode is oN.
hutman replied on at Permalink Reply
hutman
What version are you using? This shows up for me with the newest 5.7 version, it's just called "Permissions" but it's there.
trsh replied on at Permalink Reply
8.1.0, the one in download page
trsh replied on at Permalink Reply
For some reason, permissions are not there fro "GlobalArea". For new Area works.
hutman replied on at Permalink Reply
hutman
For the Global Area try going to the Dashboard -> Stacks & Blocks -> Stacks -> Global Areas and see if it's there.
trsh replied on at Permalink Reply
Kind of isn't, only for the block set inside :D.. I will research more on Stacks.