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
Comment #0.0
marblegravy CreditAttribution: marblegravy commentedstuck code tags around so it would show up
Comment #1
saltednutYou'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.
Comment #2
saltednutBut what I've posted above seems like a stopgap.
That part at least has been fixed by #1935770: Bean label is used as block subject
Comment #3
saltednutOk - 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.
Comment #4
marblegravy CreditAttribution: marblegravy commentedThanks 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.Comment #4.0
marblegravy CreditAttribution: marblegravy commentedimproved note about leaving the field blank