Posted by cside on September 25, 2008 at 10:15pm
4 followers
| Project: | Sky |
| Version: | 6.x-2.x-dev |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed (fixed) |
Issue Summary
The theme doesn't appear to be compatible with collapsiblocks ..... any chance ????
Thanks
Comments
#1
I have worked this out ......
For anyone wishing to get collapsiblocks to work, i changed the code in the block.tpl.php on line 5:
<div class="title"><h3><?php print $block->subject; ?></h3></div>#2
Interesting... I'll take a look at changing this in the theme when I have some time.
Thanks for the report :)
#3
Hi cside,
I just committed some changes to the theme that will allow Collapsiblock to work with Sky. You should see them by the end of today in the dev version.
The changes I committed are not enough for it to work though. You need to place the sky.inc file (which I've attached to this comment) inside the collapsiblock module theme directory: modules/collapsiblock/theme/sky.inc.
I will also request that the collapsiblock module maintainer add the file to the module.
:)
#4
Forgot the file... Here it is :)
#5
Many thanks :)
#6
Not working for me :( Yes I've put sky.inc in ..sites/all/modules/collapsiblock/theme
Fantasitc theme, but I need to have collapsiblock working - any further pointers please?
#7
Let me know what info you need? Checking - cleared cache etc... still not working. Also, I have CSS and JS aggregation switched off.
#8
Got it to work! Strangely I needed to use h2 tags rather than h3 as suggested above. This was the line I used in block.tpl.php ...
<?php if ($block->subject) printf('<h2 class="title">%s</h2>', $block->subject); ?>#9
Even weirder... after many hours testing with them working fine, I set the theme to be the site default (previously it was just enabled for my user id) and the collapsible blocks instantly stopped working. Something to do with file paths maybe?
#10
SOLVED: Turns out the sky.inc fix given above now works. i.e. it wasn't working for some reason when I was only using the Sky theme for my user id (not site default which was still Garland) and I modified the block.tpl.php file as described, which allowed collapsiblock to work. However, after setting Sky as site default them, I needed to restore the original version of block.tpl.php which, together with sky.inc, allowed things to work again.
#11
Automatically closed -- issue fixed for two weeks with no activity.