CSS issues with amended classes

arsart - November 25, 2006 - 00:39
Project:Block Cache
Version:4.7.x-1.x-dev
Component:User interface
Category:bug report
Priority:critical
Assigned:Unassigned
Status:won't fix
Description

Hello,

The module is really useful but I've noticed that it makes template maintenance too difficult because it automatically replace cached block HTML classes and IDs.
After that CSS style have to be redone to make all blocks' design layouts be same as their uncached parents.
Is it possible to replace auto-formatting of standard classes' naming convention here and not force to replace all default classes like "block-block", "block-[module]" and IDs "block-block-№", "block-[module]-№" to module specific classes "block-blockcache" (block-[module] schema was shamefully dropped here!).

I can't get why default classes and IDs (if it's really needs by module mechanism) cannot just be extended only by a one extra multiple class or ID here? Like: class="block blockcached block-search" within id="block-search-0 blockcached"

That would be really helpful amend decreasing dramatically maintenance and creation of the template!

#1

jjeff - November 28, 2006 - 16:00
Status:active» won't fix

Well technically speaking, the cached blocks are different blocks and therefore they have different css classes. There's not really any way around this without changing Drupal core. Killes has done some work on a block caching mechanism for Drupal core, but it wouldn't get in until Drupal 6 at least.

In the meantime, you can alter theme_block() in your theme, so that you can control this to your liking.

#2

arsart - November 28, 2006 - 20:35

Actually the question was about broken class naming convention, because anyway we've lost the multiplie class of module' blocks :(
Ok, np, willl try to solve it with amended blockcache classe.

#3

elvis2 - January 24, 2007 - 12:43

jjeff,

could you give an example on how to do this with theme_block() ?

Thanks

 
 

Drupal is a registered trademark of Dries Buytaert.