CSS issues with amended classes
| Project: | Block Cache |
| Version: | 4.7.x-1.x-dev |
| Component: | User interface |
| Category: | bug report |
| Priority: | critical |
| Assigned: | Unassigned |
| Status: | won't fix |
Jump to:
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
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
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
jjeff,
could you give an example on how to do this with theme_block() ?
Thanks