I create new accordion block and add three blocks inside.
I put the accrodion block on a frontpage, see the effect, but see no titles of the blocks included into this accordion.
Even when I inspect html by Firebug, nothing found inside:

<h2 class="ui-accordion-header ui-helper-reset ui-state-default ui-corner-all" role="tab" aria-expanded="false" tabindex="-1">
<span class="ui-icon ui-icon-triangle-1-e"></span>
<a href="#" tabindex="-1"> </a>
</h2>

Zeropoint theme is set.
The same if I switch theme to Bartik.

Comments

pflame’s picture

Did you mention the Block titles for the blocks that you added to accordion effect?
Mention what theme you are using.

Nick Fedchik’s picture

Yes, the blocks that I include into AB.

Nick Fedchik’s picture

Update to 3.1.
See the title of AB, but still didn't see the titles of included blocks.
On the same page I output Views Accordion block, where each node has a title in accordion element.

anup.singh’s picture

/* solution for blank title*/

replace line 173 in "accordion_blocks.module" ie //
**********************************************************
$blocks_content[$key]->title = $block_data->title;
$blocks_content[$key]->content = $block_content['content'];
************************************************************
with
**********************************************************
$blocks_content[$key]->content = $block_content['content'];
if($block_data->title) {
$blocks_content[$key]->title = $block_data->title;
}
else {
$blocks_content[$key]->title = $block_content['subject'];
}
**********************************************************************
it will replace your title with block subject if title is empty

if you have any problem reply me

pflame’s picture

Hi anup,

Looks like this solves the issue. Create a patch and send me, I will apply the patch. Look at http://drupal.org/node/1319154 http://drupal.org/node/707484 links about how to create a patch.

Nick Fedchik’s picture

I apply the changes from #4
Then create AB woth three core blocks: "Last Users", "Users Online" and "Last Forum Topics"
Looks incorrect.

First block "Last Users" is open by default, no title shown (even whedn I click on a next block in AB!).
But the "Last Users" shown on collapsed block below (second block).
And "Users Online" on a third line, which shoud be "Last Forum Topics".

We have a bit progress - some titles are shown, but we have to pull up the headers on a one level.
Maybe the problem where the title data passed to JavaScript?

sharique’s picture

Issue tags: ++patch
StatusFileSize
new1.18 KB

I have created patch for it. please review.

brisho’s picture

Status: Active » Needs review
StatusFileSize
new998 bytes

The patch in comment #7 does not comply with Drupal patch naming standards or coding standards. Here's a patch that does comply.

aloyr’s picture

Status: Needs review » Needs work

applied patch from #8. In the case of a block without a title, I get the error below:

Notice: Undefined index: subject in accordion_block_content() (line 170 of/home/peter/workspace/d7/sites/all/modules/accordion_blocks/accordion_blocks.module).

brisho’s picture

Status: Needs work » Needs review
StatusFileSize
new1.09 KB

Please ignore the patch in comment #8 and use this one instead. It takes into account the possibility that the $block_content['subject'] element may not be set.

aloyr’s picture

Status: Needs review » Reviewed & tested by the community

downloaded & applied the patch on #10. worked as described. accordion block items now have their titles showing. good deal! :)

pflame’s picture

Status: Reviewed & tested by the community » Closed (fixed)

The patch is applied to 7.x-3.x branch, it will be available in the 7.x-3.x branch.