Just a small request...when I put in a Block Title that is going in the quick tab block, it still shows the block title.
This is not the quick tab block itself, but rather the blocks that are within the quick tab block.
It would be nice to not have the block title of the blocks since they already have their title in the tabs.

Comments

katbailey’s picture

I have added this option as a setting now.

katbailey’s picture

Status: Active » Fixed
Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.

jasom’s picture

I have same problem in D5 version. How I can remove block title from QT?

There are two my ideas:
Put <none> tag in QT block tabs - not working for me
Design menu-block.tmp.php without block title echo. - to complicated :)

Can you help me with this?

pasqualle’s picture

@Jasom: you can override the theme_quicktabs_block() function in your theme's template.php file.

handbook http://drupal.org/node/55126

this will remove the title from every quicktab block:

function MYTHEME_quicktabs_block($block, $title = TRUE) {
  $output  = "<div class=\"block block-$block->module\" id=\"block-$block->module-$block->delta\">\n";
  $output .= " <div class=\"content\">$block->content</div>\n";
  $output .= "</div>\n";
  return $output;
}
jasom’s picture

Than you but I found this option in admin > site settings. Im overworked :)

mediamash’s picture

where did you find that setting? admin/settings/quicktabs has no option like that

mediamash’s picture

Status: Closed (fixed) » Needs work

setting this to critical since the <none> title-option inside the block doesn't work
also overwriting the title in the textfield doesn't work

when you comment out line 154 //$mainblock['subject'] = $quicktabs['title']; title will be removed (for ALL QTs)

pasqualle’s picture

@mediamash: which version are you trying? which block title you want to remove? the block inside quicktab or the quicktab block title?

probably your block.tpl.php file is incorrect in your theme, and that's why <none> does not work..
#351086-5: QT block title is not hidden properly

mediamash’s picture

hi Pasqualle

using version 6.x-2.0-rc3 and trying to remove the quicktab block title. Im using a zen based theme, which applies for

  <?php if ($block->subject): ?>
    <h2 class="title"><?php print $block->subject; ?></h2>
  <?php endif; ?>
pasqualle’s picture

Version: 6.x-1.x-dev » 6.x-2.0-rc3

then it should work.

1. go to admin/build/block
2. find your quicktab block and click configure
3. set <none> as block title

your quictab block title should be removed.. if it is still displayed then you should try it with the garland theme.

jameswoods’s picture

I thought I was having the same problem where putting <none> or "blah blah blah" in the QuickTab title had no effect on the block title being displayed above my QuickTab block. Then it occurred to me that my QuickTab was inside of a panel pane. In Home » Administer » Panels » Panel pages » Settings on the Content tab, I clicked on the gear icon for the pane that contained my QuickTab and then checked "Override title" and left the field blank. Boo-Yah.

My "problem" was solved by simply pulling my head out 8^) Hope this helps someone else someday.

bartezz’s picture

I have my block title set to but when I look at the source of the output it shows as;

<h2><none></h2>

Don't think this is correct, is it?

pasqualle’s picture

@Bartezz: your block.tpl.php file must be incorrect in your theme, as it seems like you are printing the $block->title instead of $block->subject..

bartezz’s picture

Hi Pasqualle,

I checked my block.tpl.php and I am printing $block->subject....

<div id="block-<?php print $block->module .'-'. $block->delta; ?>" class="clear-block block block-<?php print $block->module ?>">
<?php if (!empty($block->subject)): ?>
  <h2><?php print $block->subject ?></h2>
<?php endif;?>
  <div class="content"><?php print $block->content ?></div>
</div>

This results in the HTML

<h2><none></h2>

Which is not very acceptable for validation I think...

Cheers

pasqualle’s picture

is it the result from quicktab block or is it from a block inside quicktab?

dsayswhat’s picture

When I set my block title to <none> in block config, there is no change. After saving, checking to see that the block title is still there ( it is... ) and editing the block again, I can see that in the block title field where I previously entered <none>, there is nothing. It appears that quicktabs is clearing that value and the block is defaulting to quicktab's value instead.

Thoughts?

pasqualle’s picture

QT does not do anything with the block edit page..

katbailey’s picture

Status: Needs work » Closed (works as designed)

Closing this as there has been no activity on it in over a year.

khoomy’s picture

I display block title as tab title by overriding theme function as:

function THEMENAME_quicktabs_tabs($vars) {
  $output = '<ul class="quicktabs_tabs quicktabs-style-' . $vars['tabset']['#options']['style'] . '">';
  foreach ($vars['tabset']['tablinks'] as $i => $tab) {
    if (is_array($tab)) {
      $tab_id = array_keys($tab['#options']['query']);
      $bid = $tab['#options']['query'][$tab_id[0]];
      $tab_id = str_ireplace('quicktabs_', '', $tab_id[0]);
      $qt = quicktabs_load($tab_id);
      if ($qt->tabs[$bid]['type'] == 'block') {
        $delta = str_ireplace('block_delta_', '', $qt->tabs[$bid]['bid']);
        $block = block_load('block', $delta);
        if ($block->title) {
          $tab['#title'] = $block->title;
        }
      }
      $active = $i == $vars['tabset']['#options']['active'] ? ' class="active"' : '';
      $output .= '<li' . $active . '>' . drupal_render($tab) . '</li>';
    }
  }
  $output .= '</ul>';
  return $output;
}
<

You can change it for views also.

I hope this will help someone :) cheers