When you chose "display mode: full node" from the block options after making the webform available as a block, you get multiple titles (webform's title and block title) in the block.

If you give the block a title of "none", then the title of the webform is displayed as the block title. This is not terrible, except that the title is a link that takes you to the webform's page - which is not desired.

However, when you are on the webform's page, then the block functions as it should. Only the title of the block is shown, or, if block title is set to "none", then the title of the block is the webform's title NOT displayed as a link.

Yes, this is a little confusing.

Basically, I would like to give the block a title without having the webform's title display underneath it... without using views.

Comments

quicksketch’s picture

What you're describing is unfortunately the intended behavior, because we don't have any way of telling Drupal to not render the title while displaying a teaser. You can work-around this in the theme layer by checking the $node->webform_block property in your node-webform.tpl.php file, or you could use the Form-only display mode (the default) for the block.

quicksketch’s picture

Category: bug » support
Status: Active » Fixed

To fix this in your theme, edit node.tpl.php and add the following:

  <?php if (!$page && empty($node->webform_block)): ?>
    <h2<?php print $title_attributes; ?>>
      <a href="<?php print $node_url; ?>"><?php print $title; ?></a>
    </h2>
  <?php endif; ?>

This will make it so that your theme will not print out the node title if the Webform node is being displayed as a block.

Status: Fixed » Closed (fixed)

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

Anonymous’s picture

Issue summary: View changes

editing my summary