The instructions say to create a file anemd [themename].inc to define the custom selector for the collapsiblock link if it is not an H2 tag. I tried that, but the file never gets loaded and I cannot find anything in collapsiblock.module that would appear to do that. As a result the blocks will not expand and collapse. I was able to work around it on my site by adding a field to the admin settings page and using a variable_get in collapsiblock_load to add it to the javascript, but obviously that won't be theme specific. It'd be nice to get this working back the way it was intended (and even nicer to just have the function in template.php - no idea why it needs to be in a new .inc file).

Comments

seanr’s picture

Title: Collapsiblock does not load [themename].inc » Load [themename].inc files from themes' directories, not collapsiblock's own directory.

Figured out what's going on - it's looking for [themename].inc in /sites/all/modules/collapsiblock/theme/. The trouble with that is that any file added there will get erased when performing an update with drush. The module really needs to look in the theme's directory so that drush updates don't break it.

seanr’s picture

Just got bit by this one again. Has anyone other than me read this post? ;-)

nedjo’s picture

Yes, this should be fixed. I'd welcome a patch.

gagarine’s picture

Status: Active » Fixed
gagarine’s picture

Status: Fixed » Closed (fixed)