I've followed the README, but I can't seem to get this to work at all. Here's what it put in the header on my site:
<script type="text/javascript" src="/misc/jquery.js?v"></script>
<script type="text/javascript" src="/misc/drupal.js?v"></script>
<script type="text/javascript" src="/modules/jstools/jstools.js?v"></script>
<script type="text/javascript" src="/modules/collapsiblock/collapsiblock.js?v"></script>
<script type="text/javascript" src="/modules/jstools/jquery.cookie.js?v"></script>
<script type="text/javascript">jQuery.extend(Drupal.settings, { "basePath": "/", "jstools": { "cleanurls": true, "basePath": "/" }, "collapsiblock": { "blocks": { "block-block-3": "3" }, "default_state": "1" }, "titleSelector": "h3" });</script>
That all looks correct. It's got the right block - #block-block-3 - and it's using ngp.inc to get the H3 titleSelector, but for whatever reason it isn't actually doing anything on the page, and no errors are generated:
http://ngpsoftware.ngphost.com/
Any ideas?
Comments
Comment #1
seanrFound the culprit. It's not respecting the titleSelector because it's not being output under collapsiblock in the settings. This patch to collapsiblock.js fixes it, but you might also want to fix it on the other end (collapsiblock_load - looked at that one but wasn't sure how to fix it).
Comment #2
seanrGot it. This fixes it from the other end instead. Probably better since it keeps everything grouped inside collapsiblock, but take your pick. ;-)
Comment #3
nedjoThanks, good catch, looks good.
Comment #4
nedjoThanks, applied.
Comment #5
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.