Hi,

I'm the maintainer of the Sky theme, and I just added support for your module. I've attached a sky.inc file, for you to include in your theme directory if you choose to :)

Thanks for a great module!

Jacine

CommentFileSizeAuthor
sky.inc_.zip643 bytesjacine

Comments

gbrussel’s picture

I have looked at this file, and it does not work. If you just remove the .title from the titleSelector, it works:

<?php
function collapsiblock_theme_data() {
  return array(
    'titleSelector' => 'div',
  );
}

Works for blocks. However, I still cannot get this module to work with blocks created by views. I'll dig deeper to see if I can figure out why.

gbrussel’s picture

Views blocks do not spit out an ID attribute by default on their blocks, and the content within the block has a class of "view-content", not "content", which is what collapsiblock.js searches for.

I'll probably copy these two posts into a new issue as I continue to dig deeper.

jacine’s picture

Status: Active » Closed (fixed)

I'm going to be changing the title to a h3 in the next release, so this no longer applies. This module still wont work with Sky by default, because it requires an h2, but I guess I'll just add notes to a README.txt for people.