Closed (duplicate)
Project:
Bean (for Drupal 7)
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
8 Apr 2013 at 07:14 UTC
Updated:
10 Apr 2013 at 00:33 UTC
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:
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 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 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 commentedimproved note about leaving the field blank