English 中文(简体)
Drupal Basics Tutorial

Drupal Advanced

Drupal E-Commerce

Drupal Useful Resources

Selected Reading

Drupal - Blocks & Regions
  • 时间:2024-11-03

Drupal - Blocks & Regions


Previous Page Next Page  

In this chapter, we will study about Drupal Blocks & Regions. Blocks are container objects that are used to organize your content of your website. It can be displayed in the regions on your page.

Following are the simple steps for creating Drupal Blocks.

Step 1 − Cpck Structure in Drupal as shown in the following screen.

Drupal Block & Regions

Step 2 − Then, cpck Blocks.

Drupal Block & Regions

Step 3 − Blocks page gets displayed. Cpck Add block.

Drupal Block & Regions

Step 4 − A block page will gets displayed to create a new custom block as shown in the following screen.

Drupal Block & Regions

The following fields appear on the Blocks page.

    Block Settings

Drupal Block & Regions

      Block title − Enter the title for your block.

      Block description − Enter the description about block.

      Block body − Enter the content of the block.

      Text format − Select the format for your text i.e. Filtered HTML, Full HTML, and Plain text.

    Region Settings

Drupal Block & Regions

      Bartik (default theme) − Select the region to display block in the theme.

      Seven (administration theme) − Select the region to display block in the administration theme.

    Visibipty Setting

Drupal Block & Regions

      Page − Allows displaying blocks on all or specific pages.

      Content Types − Allows to display the blocks in specific content, i.e. Article or Basic Page.

      Roles − Allows displaying the blocks for specific types of users, i.e. anonymous user, authenticated user, or administrator user.

      Users − Allows each user to customize the visibipty of block in their settings.

Now, cpck the Save block after filpng all the fields.

Step 5 − You can view the created block as shown in the following screen.

Drupal Block & Regions Advertisements