og blocks appear to ignore block class classes. Is there a known incompatibility?

Comments

todd nienkerk’s picture

Let's make sure everything is set up first.

  1. Have you followed the installation instructions on the Block Class page? That is, have you added output of the block classes to your theme's block.tpl file(s)?
  2. Does Block Class work on blocks not generated by Organic Groups?
  3. Are you customizing block output in any way -- theme functions, template files, etc. -- that would make Organic Groups blocks behave differently?
plan9’s picture

Hi,

Yes, I've set everything up correctly and it is working fine on non-og blocks on all other pages. I'm using this script by gregarios: http://drupal.org/node/289911#comment-1786728 to dynamically alter the height of block columns and it relies on Block Class.

Thanks

G

todd nienkerk’s picture

Some follow-ups:

  1. Are the classes provided by Block Class being added to the markup of OG blocks? If the classes aren't being added at all, it's probably because (a) there aren't classes specified for those blocks or (b) the code or block.tpl file that generates the output hasn't been modified to print Block Class classes.
  2. Does OG use its own block.tpl file(s)? Does it bypass the block.tpl system entirely?
  3. Have you determined which block.tpl file is building the OG block(s)? Does changing it/them actually result in changes to the markup?
  4. Does your theme contain a block.tpl file or files specific to the OG module (block_og.tpl.php, etc.)?

I would also recommending removing the script you mention above to see if it's the cause of the problem.

plan9’s picture

Status: Active » Closed (fixed)

Thanks for your response Todd.
It turns out that there is no incompatibility - this was due to a configuration error on my part.

Best

G