Hide Blocks from Specific Groups/Users?
Permalink
Is it possible to hide specific blocks from a group or user's Add Blocks window. I know I can limit where they can insert blocks but I want to limit what kind of blocks they can use. For example only the content & YouTube blocks will appear for a given user.
Ok, I'm an idiot... I figured out how to hide blocks per block... which is handy. It would still be nice to globally hide a block type for a user or group.
How did you do it?
I want this feature also, would make sense to be able to limit what types of blocks each user group has the ability to add.
An "access" tab/button in the blocks configuration panel, in the "Add Functionality" dashboard page is where I would imagine one existing.
I would imagine that blocks by default should be visible to everyone, that way if a client purchases a block from the marketplace they will have access to it right away. The site administrator can designate which blocks would be hidden from certain user groups. Things like the php block, for example.
The user groups that do not have 'add' access will by default not have 'edit' permission either, but it would be ideal to have an manual over-ride for a user to be able to edit blocks that have been placed by developer, yet no ability to add them.
Man, that sounds like a ton of work ... looking at the core file /site/concrete/elements/block_area_add_new.php, there might be a way to filter which blocks are displayed in the list when adding a block to a content area. I personally don't fill comfortable yet with my understanding of concrete5 to attempt to hack this... but still was inspired by the idea and maybe it will become closer to reality by spelling it out :) ... if anything let this be the longest 'bump' ever :)
An "access" tab/button in the blocks configuration panel, in the "Add Functionality" dashboard page is where I would imagine one existing.
I would imagine that blocks by default should be visible to everyone, that way if a client purchases a block from the marketplace they will have access to it right away. The site administrator can designate which blocks would be hidden from certain user groups. Things like the php block, for example.
The user groups that do not have 'add' access will by default not have 'edit' permission either, but it would be ideal to have an manual over-ride for a user to be able to edit blocks that have been placed by developer, yet no ability to add them.
Man, that sounds like a ton of work ... looking at the core file /site/concrete/elements/block_area_add_new.php, there might be a way to filter which blocks are displayed in the list when adding a block to a content area. I personally don't fill comfortable yet with my understanding of concrete5 to attempt to hack this... but still was inspired by the idea and maybe it will become closer to reality by spelling it out :) ... if anything let this be the longest 'bump' ever :)
I agree - to hide specific blocks from user levels would be a great improvement as well as being able to reorder the blocks without needing to go into the database