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
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

jjeff - January 24, 2007 - 14:29
Status:active» won't fix

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.

 
 

Drupal is a registered trademark of Dries Buytaert.