Closed (won't fix)
Project:
Block Bar
Version:
5.x-0.1
Component:
User interface
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
31 Jan 2007 at 17:04 UTC
Updated:
14 Feb 2008 at 22:01 UTC
When I add a custom block to the block bar container the title does not show up. The contents does show up though.
Comments
Comment #1
phoenixblue commentedadd ($output .= $block->title;) in the theme and it'll show
Comment #2
cappelle commentedThank you very much! The title shows up now.
It created another problem though - the "my favorites" (favorite nodes) block now has TWO titles. Or no title if I try to remove one.
But the custom block is more important to me so I'm glad that is resolved.
Comment #3
phoenixblue commentedmmm.. maybe u can do a if (isset($panel_title)) then print $panel_title else print $block->title
heeh.. didn't test it out but yeah..
Comment #4
cappelle commentedWhoa! It worked! Thanks again!
I replaced your line of code with this one:
if (!isset($panel_title)) {$output .= $block->title;}
Comment #5
phoenixblue commentedahh.. much better
Comment #6
Sam308 commentedQuestion for blockbar-4.7.x-1.x-dev:
I looked at the other post "Blockbar title doesn't appear" for Version: 4.7.x-1.x-dev (http://drupal.org/node/47970) for a solution, but this seems to be an old post (February 5, 2006) because line 138 is not an output statement or uncomment out.
In the 5.x-0.1 version you said just add the line:
$output .= $block->title;
to the the theme function and it should work. I am sure it works in version 5.x-0.1 but I tried to get it to work in 4.7.x-1.x-dev by adding this statement to the blockbar.module file from the blockbar-4.7.x-1.x-dev distribution dated Nov 13 2006, but it does not work. I am currently using Drupal 4.7.5.
The current HTML web page output using the unmodified 4.7.x-1.x-dev blockbar.module is shown as below where as the Block title should be between the
<H3></H3>tags.Is there a way to output the Block Title in Version 4.7.x-1.x-dev?
Thanks,
Sam308
Comment #7
dreed47 commentedSurpressing block titles is done by design but you can easily change it in the module code if you like. In the blockbar_block function in the "view" case there is a line of code commented out (sorry, I didn't look up the line number but it's the only commented out line and should be very easy to find). If you uncomment that line you should have your block titles back.
At some point in the future I should probably make this an option that can be set but I don't have the time right now to do it. (patches welcome :-) )
Comment #8
Sam308 commentedThanks, it worked
Comment #9
PixelClever commentedAre the lines of code presented by Pheonixblue going to be incorporated into the official module release in the future?
Comment #10
dreed47 commented