Seems that if I try to use this module on blocks that have a delta of 0 that it is not being inserted correctly as the delta is left unset. However if I manually update the entry with a delta of 0 it then works correctly. Just wondering if there is a patch for this before I go fix it myself.

Comments

todd nienkerk’s picture

Title: Ummm is it just me? » Class not working for blocks with a delta value of zero
Status: Active » Closed (won't fix)

All blocks must have a delta value. Modules should, as a matter of best practice, define delta values for all blocks. If another module isn't setting delta values, that module needs to be fixed.

I'm marking this as "won't fix" unless someone demonstrates there are a number of modules that fail to explicitly set delta values. If several modules aren't following best practices, we'll need to implement a patch for Block Class to handle such cases.

(In the future, please use more descriptive issue titles. This will allow other users to quickly find issues they may be experiencing themselves. It also helps module maintainers track issues more effectively.)

todd nienkerk’s picture

Title: Class not working for blocks with a delta value of zero » Block Class not working for blocks with no delta values
ishfaqmch’s picture

I am using a block in header region. while defining block configration, I applied the class:( but not showing on frontend. please help.

ishfaqmch’s picture

yep added the following code in block.tpl

print $block->module .'-'. $block->delta; " class="clear-block block block- print $block->module print block_class($block);">

Now fine.
Thanx.