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!

CommentFileSizeAuthor
#12 wabi_pointer.jpg19.4 KBbomarmonk
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

marchanda’s picture

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.

survivorx’s picture

same here.

samchok’s picture

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.

Babalu’s picture

subcribing

spiffyd’s picture

Priority: Normal » Critical

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.

naiptol’s picture

Subscribing

nedjo’s picture

Title: the module doesn't seem to work... » Some themes not supported

Doesn't work in all themes.

See the readme file for more information.

Oliver Louis’s picture

Status: Active » Needs review

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.

etrangerequitraverselaville’s picture

Priority: Critical » Normal

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!

bomarmonk’s picture

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?

bomarmonk’s picture

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.

bomarmonk’s picture

FileSize
19.4 KB

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.

gagarine’s picture

Status: Needs review » Fixed

The last dev fix 1/2 of the wabi problem (the icon in the block content). This #887216: Use CSS3 multiple background should fix the other half.

gagarine’s picture

Status: Fixed » Closed (fixed)
kryber’s picture

Thank you very much .. this fix my problem .. I love you guys !

jvieille’s picture

Some themes do not include a bloc.tpl.php file.
They rely on the system template.
This prevents Collabpsiblock to work with these themes.

You just need to drop the /modules/system/block.tpl.php file beside the other theme templates and flush the registry cache.