Block Subtitle

By: Arshad

21 Jun 2010

On the new web project im working, i needed extra titles to be added to menu and blocks. A quick search on d.o return no results for block subtitle. so here goes a new project i created.

This module allows a user to add subtitle to blocks.

Installation

  1. Enable the Block Subtitle module under Administer >> Site Building >> Modules
  2. To add a subtitle to a block, go to the block configuration page. A new field 'subtitle' will be available. Enter your subtitle and click save.
  3. Now you need to edit block.tpl.php in your theme. Add the following code to show the block subtitle :
    <?php if ($block->subtitle): ?>
    <h3 class="subtitle"><?php print $block->subtitle; ?></h3>
    <?php endif; ?>

Demo

Check out the blocks on the sidebar of this page.

ok let me have your feedback on this and how we can improve the module.

1 Response to Block Subtitle

Anonymous (not verified)

Thursday, August 12, 2010 - 08:52   reply 

I have not yet used block subtitle. But i will definitely use it when i come across. Thanks Arshad.

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.
  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>, <c>, <cpp>, <drupal5>, <drupal6>, <java>, <javascript>, <php>, <python>, <ruby>. Beside the tag style "<foo>" it is also possible to use "[foo]". PHP source code can also be enclosed in <?php ... ?> or <% ... %>.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.

About Me

Arshad Chummun Hello I'm Arshad. I'm a 21 years old Drupal Web Developer. This is a site i put up for some reasons i can't remember and this is where i write stuffs i need to remember.;)

In the Web world, i head the Drupal Mauritius User Group and the jQuery user Group Mauritius and i'm a campus representative for Mozilla Firefox. 

DrupalCon CPH 2010

Copenhagen August 23 -27

Drupalcon CPH 2010