Area permissions not working in page type defaults? "Add block" still visible.
Permalink
I am using Version: 5.4.1.1.
1. I go to "Pages and Themes" -> "Page Types"
2. Click on "Defaults" for the full width page type.
3. Click on "Edit Page".
4. I set area permissions for guest & Registered Users (all boxes unchecked)
5. I add the "Basic Test" block.
6. I set block permissions for guest & Registered Users (all boxes unchecked)
7.I add the content editor group and give them read and write permissions.
8. On the ("Add to....") Area below the block, I set permissions for guest & Registered Users (all boxes unchecked)
9.Exit edit mode.
I then login as content editor and add a new page using the "full width" page type.
issue:
The block permissions works as expected, but the lower "Add to..." area still shows the "add block" menu option and all block types can be selected. I want it locked in the defaults.
I tried the same scenario on an existing website page and the permissions worked as expected. The user couldn't add blocks and I was even able restrict what blocks they could see.
1. I go to "Pages and Themes" -> "Page Types"
2. Click on "Defaults" for the full width page type.
3. Click on "Edit Page".
4. I set area permissions for guest & Registered Users (all boxes unchecked)
5. I add the "Basic Test" block.
6. I set block permissions for guest & Registered Users (all boxes unchecked)
7.I add the content editor group and give them read and write permissions.
8. On the ("Add to....") Area below the block, I set permissions for guest & Registered Users (all boxes unchecked)
9.Exit edit mode.
I then login as content editor and add a new page using the "full width" page type.
issue:
The block permissions works as expected, but the lower "Add to..." area still shows the "add block" menu option and all block types can be selected. I want it locked in the defaults.
I tried the same scenario on an existing website page and the permissions worked as expected. The user couldn't add blocks and I was even able restrict what blocks they could see.
I have te same problem! permissions on blocks work but if i try to restrict editability for the whole area group users are still able to add blocks!
Not sure I know of a direct fix to this, but there is a way to workaround it. In your pagetype, where you define the area, add the following code: $a->setBlockLimit(3); so you end up with:
Will that work for you?
Jon
$a = new Area('Main'); $a->setBlockLimit(3); $a->display($c);
Will that work for you?
Jon
I meant $a->setBlockLimit(1); obviously.
Copy n paste hell! :)
Jon
Copy n paste hell! :)
Jon
Yes that will work for now, but I hope the page type default permissions will be fixed. Funny, I discovered that method on Friday 5 mins before I left work. :) That feature was on my wish list for some other pages. Thanks again!