I have two block-vews. With one, the delta is view_name-block_1, the other is a random #. This makes trying to theme them with the block-[views]-[delta].tpl.php paradigm difficult. Why the inconsistency? Problem is, I will always know the view name, but not the delta. The way I need to develop this website, there is no dumping my db, and moving dev to production. I must recreate everything. Thanks!

Comments

rich.3po’s picture

The reason is that if the views block delta field is too long (over 32 chars) then a random hash is generated and used instead. Presumably a DB field size restriction.

The solution is to rename the view and/or block machine name to something shorter

-3po

kalabro’s picture

Thanks, @rich.3po! The same is correct for Drupal 7.