Skip to Content

Enable, Disable, and Set the Order of Sidebar Blocks

Why would you want to do this?

To make your site display things that you think your site's audience may be interested in. For example:

  • A list with links to the posts for each category together with the number of posts in that category e.g. for a food site a list with links to all the restaurants, reviews, recipes, etc.
  • A list with a link to the latest blog posts from the site's blogs
  • A list with links to those users who are logged on
  • A list with links to upcoming events

You get the idea! The above blocks (and more) can be found on Urban Vancouver if you need a concrete example.

The steps are:

  1. First, figure out which modules have the blocks you want to use.
  2. Enable those modules (if they are not already enabled) by clicking administer then modules
  3. Enable the blocks you want to use and set where they will appear on the page.
  4. Configure which pages these blocks will appear on.  See the section entitled Configuring Individual Blocks below.

How To Enable a Module

  1. Login
  2. Click on administer
  3. Click on modules
  4. Ensure "Enabled" is checked for every module you want to enable
  5. Click on "Save Configuration"

How To Enable, Order and Place Blocks

  1. Login
  2. Click on administer
  3. Click on blocks
  4. Ensure "Enabled" is checked for every block you want to enable
  5. To set the placement and order of a block, select an appropriate weight and region. The region specifies which side of the page the block is on, and the
    weight sorts blocks within a region. Lighter (smaller weight value)
    blocks "float up" towards the top of the page.
  6. Click on "Save blocks"

How To Disable Blocks

  1. Login
  2. Click on administer
  3. Click on blocks
  4. Ensure "Enabled" is NOT checked for every block you want to disable
  5. Click on "Save blocks"

Configuring Individual Blocks

Each block has a "configure" link next to it. Clicking that link will always get you the following settings:

  • Custom visibility settings: whether or not the block is displayed by default, and whether users can enable or disable it. The user (or an admin) must edit their account and enable the block to make it visible.
  • Page visibility: which URL paths the block is visible from. You can choose whether the list is of pages on which the block appears or if it is a list of pages you wish it not to appear on. Some examples:
    • to have the block appear only on the front page use:

      <front>

    • to have the block only appear on all individual items, i.e. pages whose URLs start with "node":

      node/*

  • Content specific visibility settings: what types of pages the block appears on.
    • You can combine content type visibility with path visibility. Note that all conditions need to be true for the block to display, not just one of them.

Other modules may add settings to the blocks it adds to the main list of blocks. Consult the documentation for that module for how to use those settings.