Creating Blocks

Blocks are created on the page:

    Administer > Site configuration > This Day in History > Configure Blocks

The following screen shot fragment shows this page, with a block named "Example Block" already created.

Configure Blocks

By default, a block will display all events. Events can also be selected (i.e., filtered) based on the following criteria:

  • Category (i.e., taxonomy term)
  • User
  • User role

Additionally, you can specify whether to display all events or randomly select a single event.

Blocks can be configured from either:

    Administer > Site configuration > This Day in History > Configure Blocks

    Administer > Site building > Blocks page.

The ability to add block header text is also provided. The Drupal filter mechanism is used, so PHP code is allowed to a sufficiently privileged block administrator. This allows dynamic block text. For example, the string "On March 27th in the world of sports:" can be created using the string:

<div>On <?php print date('F jS') ?> in the world of sports:</div>

 
 

Drupal is a registered trademark of Dries Buytaert.