I can't seem to get Collapsiblock to work with the Pixture theme. I'm using Drupal 5.x, and my understanding is that you must use the Dev version of JsTools which I am doing, but it still doesn't work. Anyone experience this issue?

Comments

ScoutBaker’s picture

I'm not an expert in collapsiblock, but have you been able to make it work with the Garland theme? If it doesn't work with Garland, it's likely an issue with something else on your site/installation.

toddchris’s picture

Yeah, it does work with other themes including Garland. :(

Jeff Burnz’s picture

Assigned: Unassigned » Jeff Burnz
Status: Active » Closed (won't fix)

The issue is not with Pixture but with collapsiblock.js, it assumes all blocks are built with div tags, whereas Pixtures blocks are tables.

You can make this work by changing one line in collapsiblock.js (line 4)...

$('div.block:not(.collapsiblock-processed)', ...

To...

$('.block:not(.collapsiblock-processed)', ...

I make the assumption that you have added the necessary pixture.inc file as per the Collapsiblock README instructions.

zet’s picture

Try Pixture Reloaded theme that is based on div's instead of tables

Jeff Burnz’s picture

The OP's issue is against Drupal 5, however there is no Drupal 5 version of Pixture Reloaded.

clintu’s picture

Yes. it worked for theme Pixture. But when I changed the theme to Pixture Reloaded its not working.

peter panes’s picture

I am also trying to get this working with Pixture Reloaded in Drupal 6, any help greatly appreciated.

peter panes’s picture

Well Ive managed to get Pixture Reloaded theme working in Drupal 6 with collapsiblock, all you need to do is edit the block.tpl.php file in Picture Reloaded theme directory, and add the class "content" to "block-content" or "block-content-inner".

So block.tpl.php before the class added looks like this:

<div class="block-content">
  <div class="block-content-inner">
    <?php print $block->content; ?>
  </div>
</div>

After adding "content" class:

<div class="block-content">
  <div class="block-content-inner content">
    <?php print $block->content; ?>
  </div>
</div>
sej123’s picture

Version: 5.x-1.1 » 6.x-1.1
Component: Miscellaneous » User interface

Hi

By adding above code, it collapses all the blocks in Pixture reloaded theme.
Is there any way to tell drupal to collapse only specified blocks?

peter panes’s picture

It only collapses only the block i've clicked on.

Do you mean you want to allow only one block to be collapsible, if so this is achievable on that blocks configuration page.

You can test it on my site here:
http://www.thetraininghub.co.uk/hubservices