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)
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | site1.png | 177.92 KB | vegardjo |
| #3 | openatrium.png | 116.85 KB | vegardjo |
| feature.png | 19.42 KB | vegardjo |
Comments
Comment #1
pasqualleplease check that block.tpl.php file in your theme contains the following code for block title:
Comment #2
yhahn commentedSwitching projects, status.
Comment #3
vegardjo commentedhia,
@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.
Comment #4
vegardjo commentedhm, 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.
Comment #5
damienmckennaIsn't this just a duplicate of #345050: Blocks set with context do not respect <none> block title override?
Comment #6
steven jones commentedI'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.