Collapsiblock in Genesis theme

cside - February 5, 2009 - 23:33
Project:Collapsiblock
Version:6.x-1.x-dev
Component:Code
Category:support request
Priority:normal
Assigned:Unassigned
Status:closed
Description

Hi,

Anyone got collapsiblock to work in the Genesis theme? Have added the .inc file but am not sure what code i need to add around the h2 tags in the block.tpl file.

Thanks

#1

cside - February 8, 2009 - 21:56

Sorry, to be more specific here is the relevant block.tpl code:

<div id="block-<?php print $block->module .'-'. $block->delta; ?>" class="block <?php print $block_classes; ?>">
  <div class="block-inner inner">

    <?php if ($block->subject): ?>
      <h2 class="block-title"><?php print $block->subject; ?></h2>
    <?php endif; ?>

    <div class="block-content">
      <?php print $block->content ?>
    </div>

where the active element is:
<div class="block-inner inner">

I have tried all sorts of combinations and followed the most recent thread solutions but still can't get it to work.

Can anyone help?

Thanks

#2

cside - February 10, 2009 - 08:19

Scrap the earlier comments! Finally worked it out :)

#3

jocklife - March 12, 2009 - 19:40

How?

#4

_Sack_ - April 18, 2009 - 02:47

Yes, please let us know.... 'Finally worked it out..' helps no-one, especially those of us still with the problem :(

#5

Jeff Burnz - May 25, 2009 - 14:14
Status:active» fixed

You need the "content" class on the wrapper div around $block->content

Add the class as below and all will work as expected:

    <div class="block-content content">
      <?php print $block->content ?>
    </div>

One issue is that for users with Edit/Configure blocks permissions the block edit links will hover in front of the collaspiblock arrow, if this is problem you can switch off block edit links by commenting out the $edit_links variable like this:

<?php // print $edit_links; ?>

#6

System Message - June 8, 2009 - 14:20
Status:fixed» closed

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

 
 

Drupal is a registered trademark of Dries Buytaert.