Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #1
ScoutBaker CreditAttribution: ScoutBaker commentedI'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.
Comment #2
toddchris CreditAttribution: toddchris commentedYeah, it does work with other themes including Garland. :(
Comment #3
Jeff Burnz CreditAttribution: Jeff Burnz commentedThe 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.
Comment #4
zet CreditAttribution: zet commentedTry Pixture Reloaded theme that is based on div's instead of tables
Comment #5
Jeff Burnz CreditAttribution: Jeff Burnz commentedThe OP's issue is against Drupal 5, however there is no Drupal 5 version of Pixture Reloaded.
Comment #6
clintu CreditAttribution: clintu commentedYes. it worked for theme Pixture. But when I changed the theme to Pixture Reloaded its not working.
Comment #7
peter panes CreditAttribution: peter panes commentedI am also trying to get this working with Pixture Reloaded in Drupal 6, any help greatly appreciated.
Comment #8
peter panes CreditAttribution: peter panes commentedWell 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:
After adding "content" class:
Comment #9
sej123 CreditAttribution: sej123 commentedHi
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?
Comment #10
peter panes CreditAttribution: peter panes commentedIt 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