Some themes not supported
samchok - July 11, 2008 - 14:52
| Project: | Collapsiblock |
| Version: | 6.x-1.x-dev |
| Component: | Code |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | needs review |
Description
Hi all,
I'm interested in having collapsible blocks, I've enabled this module in the modules page, and then I changed Default block collapse behavior by selecting Collapsible, expanded by default.
I expected to see a 'minus' or something clickable on my blocks so that I can collapse them, but I can't see anything like that... Am I doing something wrong?
Maybe the problem is that I'm using an homemade theme? I have to include something in my block.tpl.php file to make my blocks collapsible?
Let me know.
Thank you!

#1
Hey all,
I'm getting expand and collapse icons (which change when clicked), but the blocks are not expanding/collapsing. Thanks for the mod. Loved it when using Drupal 5.
#2
same here.
#3
Regarding my problem (collapsiblock arrow doesn't appear at all in my blocks) I found out that this is because I personalized my blocks appearance creating "block-name.tpl.php" files. If I remove the tpl file, the collapsiblock's arrow appears.
Is there a way for me to use collapsiblock module with tpl files anyway?
thank you.
#4
subcribing
#5
I don't have any block customization and still the expanding/collapsing doesn't work.
Initially after installation of this module, no arrows showed... until I made some modifications to my block.tpl.php after installing the Block Class module. This is the code to my block.tpl.php:
<div class="defaultblock">
<div id="block-<?php print "$block->module-$block->delta" ?>" class="clear-block block block-<?php print $block->module ?> <?php if (function_exists(block_class)) print block_class($block); ?>">
<h2><?php print $block->subject; ?></h2><!--block title-->
<div class="blockcontent"><?php print $block->content; ?></div>
</div>
</div>
Now the arrows show BUT theres no expanding and collapsing when clicking on them.
I am using the Marinelli theme.
#6
Subscribing
#7
Doesn't work in all themes.
See the readme file for more information.
#8
Can be made to work with Marinelli without any flaw.
In block.tpl.php add the following -
<?php?>
<div class="block block-<?php print $block->module; ?>" id="block-<?php print $block->module; ?>-<?php print $block->delta; ?>">
<h2 class="title"><?php print $block->subject; ?></h2>
<div class="content" id="blockcontent"><?php print $block->content; ?></div>
</div>
This should fix the issue.
You have to hack the "collapsiblock.css" CSS file to your requirement.
#9
spiffyd: "Now the arrows show BUT theres no expanding and collapsing when clicking on them."
im subscribing, i finally got the arrow to show too, but the expanding/collapsing effect is not working, any clue?
Im also working with my own theme, i tried adding the inc file that says in the readme but it was keeping even the arrow showing...
...?
Thanks!
#10
Same expanding and collapsing problem: the expanded arrow shows whether the block is expanded or collapsed. When expanded, the arrow shifts down with the block content. A little ugly, but I imagine this just needs some css and template love. Any suggestions?
#11
I am using the Wabi theme, by the way, and I have added a custom .info file to the collapsiblock theme folder. Any help? The arrow doesn't properly change from expanded to collapsed (although my actual block is opening and closing just fine). The arrow is always the expanded arrow.
#12
Adding an image to show anyone who can help; this is exactly what's happening. The yellow circles show the expanded icon remaining on the collapsed block as well as the expanded one. Any idea why the other icon doesn't show up and why the expanded icon drops down with the block content? Wabi is made with tables, but I haven't been able to fix this.