When I implemented the blocktheme module and made 1 custom template, I noticed that all blocks that were not assigned to a template disappeared.

I did not want this module to work in such a way that you have to assign a template to each block to make it appear bu rather I want the blocks to default to the normal block.tpl.php. In order to do so you must change the function you copied from the readme into this function:

function dop_nrccarriere_block($block) {
if (module_exists('blocktheme')) {
if ( $custom_theme = blocktheme_get_theme($block) ) {
return _phptemplate_callback($custom_theme,array('block' => $block));
} else {
return _phptemplate_callback('block',array('block' => $block));
}
}
}

Im sure this was an obvious step to the module creator and to some other experienced themers but I think it should have a place in the readme because its not obvious to everyone :)

Comments

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.