Just like blocks I would like to have settings that allow the user to switch off/on or choose alternative blocks. Is there any way to do that in panels? May be a module that adds this functionality?

Comments

merlinofchaos’s picture

Unfortunately there isn't. It's not something that can easily be done globally.

It wouldn't be too difficult to write something to do this. You'll need 2 things.

1) A page on the profile form where you list the blocks you want to be enabled/disabled by the user. You'll have to create this list manually, and you'll need a place to store the data. Possibly in a user profile field, maybe. You could use field API and a checkboxes field, potentially.

2) An access plugin that can check the value of those checkboxes. You can then add that to the visibility rules. If you're using field api, then if you use the patch in http://drupal.org/node/1955954 you can probably just use the built in field rule and not have to write any code at all. However, I suspect that patch will not work well with checkboxes, but I don't actually know for sure.

japerry’s picture

Issue summary: View changes
Status: Active » Closed (outdated)

Drupal 7 is no longer supported, closing.

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.