Hi all,

I came across a problem when trying to theme a specific block using the Marinelli theme. Note that the "block.tpl.php" file does not print out the block name so all blocks are generic. I have wrapped my block in this:

<div id="block-<?php print $block->module .'-'. $block->delta; ?>" class="clear-block block block-<?php print $block->module ?>">
<?php /*?>Your block<?php */?>
</div>

I am not proficient in php so it looks like I could tidy this up a bit. Any pointers?

If anyone else has some additional pointers let me know.

Cheers,

Julie

Comments

prestonso’s picture

The block.tpl.php file is generic for all blocks. If you want to create a tpl.php file for only one single specific block, you'll want to use the form block-[region|[module|-delta]].tpl.php (http://drupal.org/node/190815#block-suggestion).
___________________

Preston So
Creative Director
Monarch Digital, Colorado Springs
My near-dead non-Drupal site

___________________

Preston So