I have a view which creates a block.

Normal display structure is like so:

<div class="view view-phylosophy-block view-id-phylosophy_block view-display-id-block_1 view-dom-id-1 views-processed">

<div class="view-content">
<h3>
Title: 
<a href="/content/our-rams-have-strong-constitution">Our rams have a strong constitution</a>
</h3>

<div class="views-row-1 views-row-odd views-row-first views-row-last">
    <div class="views-field-field-descriptive-text-value">
    <span class="field-content">
Our rams have a strong constitution and are easily adaptable. With a combination of genetics and hard farming we have developed high performance Romney rams which compete favourably with any Perendale, Texel or Composite in the market place. As is typical of any hill country farm found in the heart of the King Country, our property is very steep and unforgiving with cold, wet, bleak winters and dry hot summers. This harsh environment is the perfect proving ground for Wairere Kings’ high performance Romney rams. The rams are strong and muscular and this means they are highly adaptable and will transfer easily to any terrain. (give examples of rams who went to vastly different conditions and lasted well). Of course the genetic traits for constitution and muscularity are then passed on to your flock, which makes for better survivability and greater profitability.
    </span>
    </div>
    <div class="views-field-title">
        <label class="views-label-title"> Title: </label>
 <span class="field-content">
            <a href="/content/our-rams-have-strong-constitution">Our rams have a strong constitution</a>
        </span>
    </div>
</div>
</div>
</div>

When I apply the patch as per the readme

<?php

function collapsiblock_theme_data() {
  return array(
    'titleSelector' => 'h3',
  );
}
?>

The whole block disappears, even if I have collapsiblock set to no action. Everything below the first div

<div class="view view-phylosophy-block view-id-phylosophy_block view-display-id-block_1 view-dom-id-1 views-processed">

Is disabled.

Now, obviously, I would ideally like the descriptive text only to disappear when collapsed, not the title as well.

No collapsiblock icon is displayed when this content is missing.

Comments

gagarine’s picture

Status: Active » Fixed

The structure of views had change. I try it and it with the last view and Collapsiblock and it works for me.

Please reopen if you have still this problem.

gagarine’s picture

Status: Fixed » Closed (fixed)