I think this is similar to: http://drupal.org/node/1858416, but not using views and is showing it when it's supposed to be hidden instead of hiding it when it's supposed to be shown.

Steps to reproduce:

  • Create a new bean block and set the title to whatever you like
  • Go to the Manage Display settings for the Bean and change Bean field: Title to be hidden
  • View the rendered page and you will see that the heading still gets rendered.

I initially went looking in the bean.tpl.php file for the location of the title, but it's not there. From where it appears in the markup it appears to be sent to the block module somewhere along the way.

Leaving it blank means it uses the value of label instead.

Using '<none>' like you normally would for a block title ends up rendering: <h2><none></h2>

Any tips on how I can have a bean without a heading?

Comments

marblegravy’s picture

Issue summary: View changes

stuck code tags around so it would show up

saltednut’s picture

You'll want to use the core block configuration on your bean (/admin/structure/block/manage/bean/bean-machine-name) and set the title to <none> there.

Additionally you could render the bean inside panels and choose to override the title of the block then leave that field blank.

saltednut’s picture

But what I've posted above seems like a stopgap.

Leaving it blank means it uses the value of label instead.

That part at least has been fixed by #1935770: Bean label is used as block subject

saltednut’s picture

Status: Active » Closed (duplicate)

Ok - I believe this IS a duplicate of: #1858416: Rendered bean does not display the title when display settings indicate it should where essentially view mode settings are not working correctly. Let's see if we can't work this out in a single issue.

marblegravy’s picture

Thanks for the help Brantwynn, I just found the settings under the default block settings to be able to hide the heading.

I think the use cases between this one and #1858416 are the same, but different.

The difference (by my reading) being that the scenario in #1858416 is using views to render the bean without touching the default block configuration, while this scenario got confused because it was going through the default block configuration and there weren't enough ui clues for me to figure out where to configure it.

I think you are right though, if we can get it to respect the display settings and respond accordingly (send '<none>' to the block renderer, and send title as a field to views exactly as it is configured to display) it should fix the issue for everyone.

marblegravy’s picture

Issue summary: View changes

improved note about leaving the field blank