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.
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!
Comment | File | Size | Author |
---|---|---|---|
#12 | wabi_pointer.jpg | 19.4 KB | bomarmonk |
Comments
Comment #1
marchanda CreditAttribution: marchanda commentedHey 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.
Comment #2
survivorx CreditAttribution: survivorx commentedsame here.
Comment #3
samchok CreditAttribution: samchok commentedRegarding 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.
Comment #4
Babalu CreditAttribution: Babalu commentedsubcribing
Comment #5
spiffyd CreditAttribution: spiffyd commentedI 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:
Now the arrows show BUT theres no expanding and collapsing when clicking on them.
I am using the Marinelli theme.
Comment #6
naiptol CreditAttribution: naiptol commentedSubscribing
Comment #7
nedjoDoesn't work in all themes.
See the readme file for more information.
Comment #8
Oliver Louis CreditAttribution: Oliver Louis commentedCan be made to work with Marinelli without any flaw.
In block.tpl.php add the following -
This should fix the issue.
You have to hack the "collapsiblock.css" CSS file to your requirement.
Comment #9
etrangerequitraverselaville CreditAttribution: etrangerequitraverselaville commentedspiffyd: "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!
Comment #10
bomarmonk CreditAttribution: bomarmonk commentedSame 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?
Comment #11
bomarmonk CreditAttribution: bomarmonk commentedI 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.
Comment #12
bomarmonk CreditAttribution: bomarmonk commentedAdding 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.
Comment #13
gagarine CreditAttribution: gagarine commentedThe 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.
Comment #14
gagarine CreditAttribution: gagarine commentedComment #15
kryber CreditAttribution: kryber commentedThank you very much .. this fix my problem .. I love you guys !
Comment #16
jvieille CreditAttribution: jvieille commentedSome 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.