I've got myself completely stuck on what should be a simple issue.

I have two visual styles of blocks on the site, say "cool" and "warm". What's the best way to implement this?

One is to enumerate the block id's in CSS. Sounds long & clumsy. I could instead set up a custom .tpl.php file. Since all my blocks are based on views, I am having a hard time with that: I don't think I can have a blocks-block-view-.tpl.php . And I haven't figured out any path that gets picked up.

Overriding views modules is too late - the block title goes above where the view module gets involved.

It just feels like there has to be some plugin that does the job! Is there?

Thanks for your help!
Kate

Comments

smurfy’s picture

pandakate’s picture

Thanks! This started me down the right path. The module above didn't work for me as my blocks use views. But, when browsing support, I found BlockClass: http://drupal.org/project/block_class . It worked like a charm!

smurfy’s picture

block_theme also works with view blocks.

but if block_class is enougth for you use it instead.

i use block_theme in combination with blocks filled for views to display different formated boxes on the left or rightside of the content.

i also use block_theme for multicolumn layout in combination with cck_blocks.