There are several features in jstools that don't work in the Aquasoft theme. For example, Collapsable blocks don't work. In my debugging, I've found that the jstools code relies on certain standard structure and naming practices be followed for it to have the desired effects. While many newer themes follow these, some do not.
In particular, for collapsable blocks, the block must be enclosed in a div tag with a class type of block. Inside it, there must be another div tag with a class name of content. And if that is not enough, the heading text for the block must be in an h2 tag. Aquasoft follows none of these conventions.
So I'm not sure if this is a bug in Aquasoft or in jstools or if there is a need for a well designed set of rules for themes in Drupal that needs to be better communicated.
Comments
Comment #1
Gurpartap Singh commentedYou might want to add it as a feature. Replace the links as below in
block.tpl.php:Replace:
<div class="content"><?php print $block->content; ?></div>With:
<div><?php print $block->content; ?></div>Comment #2
bjvetter commentedUnfortunately, it's not that simple. If you simply add the "content" class to the block, it changes the background color of the content in the blocks to the same as the main content. You'll need to change the style sheet as well.
In addition, it is not just the "content" block that needs to exist. The block must be in a special div class named "block" and the heading text needs to be in an h2 tag. All of these will need corresponding style sheet changes or else the page lays out funny and the text is in the wrong size/font - I tried hacking on the block template but my css skills are lacking to make it look correct.
Comment #3
Gurpartap Singh commented