Closed (fixed)
Project:
Drupal core
Version:
6.x-dev
Component:
block.module
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
4 Jul 2006 at 19:37 UTC
Updated:
21 Apr 2008 at 09:02 UTC
We regularly get requests for more finely-grained control of block visibility. See e.g. "Block display conditional on content type" http://drupal.org/node/72143 and Block display conditional on taxonomy terms http://drupal.org/node/20382.
For roles we created a new table and explicitly modified the SQL (and UI) in block.module.
A more flexible approach, though, might be to use db_rewrite_sql() and allow other modules to alter block display. Then we could use a combination of hook_form_alter() and hook_db_rewrite_sql() to implement very finely-tuned access control in contrib modules, without needing further changes to block.module.
Comments
Comment #1
marcoBauli commented+1 for honouring this feature request, and subscribing to this discussion :]
Comment #2
LAsan commentedFeature request, moving to cvs.
Comment #3
webchickDone in http://drupal.org/node/155282.
Comment #4
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.