Closed (fixed)
Project:
News Portal
Component:
Code
Priority:
Minor
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
30 Aug 2006 at 08:35 UTC
Updated:
27 Nov 2006 at 07:23 UTC
Jump to comment: Most recent file
After installing jstools and enabling collapsiblock, block collapse functionality is not enabled.
I walked thru the collapsiblock.js code in a debugger, and determined that blocks are expected to have the content wrapped with a div having the "content" class. So, changing block.tpl.php to include the following line makes this theme compatible with collapsiblock:
Old:
<?php print $block->content; ?>
New:
<div class="content"><?php print $block->content; ?></div>
This fixes the problem, at least in my tests. I don't know if there is a standard set of requirements for block.tpl.php output (I assume not.)
-Mike
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | newsportal-block.tpl.php-collapisiblock-patch.txt | 637 bytes | mcurry |
Comments
Comment #1
mcurry commentedChanging issue title to be more useful, I hope. Please note that this is a feature request, I don't really consider this a bug.
Comment #2
Gurpartap Singh commentedCan you put in a patch?
Comment #3
Gurpartap Singh commentedAnyone with a patch/direct fix? If, please reopen. (closing in mass).
Comment #4
Gurpartap Singh commentedComment #5
mcurry commentedI've attached a patch. Please commit to CVS.
Comment #6
Gurpartap Singh commentedYou should be able to commit to 'New Portal' theme. :-)
Comment #7
mcurry commentedChecked in to CVS head.
Comment #8
mcurry commentedI've been unable to commit this to the DRUPAL-4-7 version, I get the following errors:
This page describes the problem:
http://drupal.org/node/57516