Hi, I believe I found a bug. When hiding a block title in /spaces/features/my_feature with typing in the title field, the title is actually hidden in output, but the code shows <h2><none></h2>

Have a look at the attached screenshot showing the source of a menu block I have in a region (defined by Context in my feature)

CommentFileSizeAuthor
#3 site1.png177.92 KBvegardjo
#3 openatrium.png116.85 KBvegardjo
feature.png19.42 KBvegardjo

Comments

pasqualle’s picture

please check that block.tpl.php file in your theme contains the following code for block title:

<?php if ($block->subject): ?>
  <h2><?php print $block->subject ?></h2>
<?php endif;?>
yhahn’s picture

Project: Features » Context
Version: 6.x-1.0-beta3 » 6.x-2.0-beta7
Status: Active » Postponed (maintainer needs more info)

Switching projects, status.

vegardjo’s picture

StatusFileSize
new116.85 KB
new177.92 KB

hia,

@pasqualle Yes, using the default block.tpl.php file.

@yhahn Thanks, glimpsed on the projects there. Not sure how much more info I can give you, but I tested some more: If you on "customize features" in a space set <none> as the block title for available blocks in that feature / context <h2><none></h2> is output in the code.

I found this for several different module blocks on my test site (see first screenshot), and I also found it in Open Atrium beta 3 (downloaded from Github approx September 15), see second screenshot.

To reproduce in OA: I went to a group space -> customize features -> set <none> as the title for the available calendar and shoutbox blocks in the dashboard feature.

I also double checked on a vanilla drupal install, and set the same on a block in admin/build/block which does not produce any output in code.

Note, the titles are hidden for the user, this is only seen when you view source.

vegardjo’s picture

hm, maybe you are not supposed to hide titles like this in Context / Features at all, and I'm only doing it as I'm used to that from how this works in Drupal blocks by default..? :)

If that's the case this would be a feature request: be able to hide block titles somehow. If you leave the field empty under "customize features" it will put the default title there, so that is not working.

damienmckenna’s picture

steven jones’s picture

Status: Postponed (maintainer needs more info) » Closed (duplicate)

I'm not even sure if you can customised block titles like that in OA any more.

I reckon this issue is a duplicate of #345050: Blocks set with context do not respect <none> block title override.