map css classes and ids for easy themeing?
elvis2 - January 24, 2007 - 12:36
| Project: | Block Cache |
| Version: | 4.7.x-1.x-dev |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | won't fix |
Jump to:
Description
Hi,
What a great module this is. It would even be better if we could turn this baby on, choose our cached blocks and viola! But, unfortunately, that is not the case as it now. Right now you have to retheme those blocks and for those of us who have several blocks all with differen colors, shapes, etc, that is a real pain.
Could you please implement an option in the settings to keep the same block module and delta?
Thank you in advance!

#1
This is not possible with the way that Drupal works currently. Each module implements its own blocks and there is no way for one module to "inject" information into another module's block. The block ids are created in theme_block using the module name and the "delta" (id) of the block. Currently, the only real way to map one block to the other would be to reimplement theme_block in your template.php file and do str_replace() to insert the correct block ids.
Eventually, it would be nice to get the block caching into core so we wouldn't have this problem anymore.