The theme doesn't appear to be compatible with collapsiblocks ..... any chance ????

Thanks

CommentFileSizeAuthor
#4 sky.inc_.zip643 bytesjacine

Comments

cside’s picture

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>

jacine’s picture

Status: Active » Postponed

Interesting... I'll take a look at changing this in the theme when I have some time.

Thanks for the report :)

jacine’s picture

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.

:)

jacine’s picture

Status: Postponed » Closed (fixed)
StatusFileSize
new643 bytes

Forgot the file... Here it is :)

cside’s picture

Many thanks :)

andy inman’s picture

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?

andy inman’s picture

Status: Closed (fixed) » Postponed (maintainer needs more info)

Let me know what info you need? Checking - cleared cache etc... still not working. Also, I have CSS and JS aggregation switched off.

andy inman’s picture

Status: Postponed (maintainer needs more info) » Fixed

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); ?>
andy inman’s picture

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?

andy inman’s picture

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.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.