Blocks are groups of content on a page that can be quickly turned on and off, moved around, and configured by users. Blocks are used, primarily, to establish the layout of a page.
Some blocks are created automatically by some modules, such as a block that displays all new announcements, or one that displays menus. However, blocks can also be created manually to contain specific content of your choice, such as a feed from the OSU Event Calendar.
Custom Mini-Cal Block
Read on to learn more about basic block configuration and enabling.
The Blocks manager panel, which can be reached by going to Admin menu > Site building > Blocks, is the main control panel for all blocks.
This panel can be very large and intimidating to new users, so we'll take some time to cover the main features of it.
The Blocks manager has several yellow blocks scattered around the screen. These indicate the different regions that are available for block placement.
A series of tabs appears at the top of the panel with the names of all enabled themes on the site. These tabs do not change the theme, they simply allow you to view the block layout when different themes are enabled.
The table in the center of the Blocks manager contains two main sections: Enabled and Disabled. Within the Enabled section are sub-sections that correspond with the yellow region indicators on the panel. When you place a block within one of these sub-sections, it will show in the matching region when saved.
To configure a specific block, click on its configure link. This will redirect you into that block's specific configuration panel.
All blocks have some very basic configurations that can be used to customize either the title or the visibility of the block. Following is an example of a basic block configuration panel.
General Block Configuration Components
Many blocks that are generated by the addition of modules to the system may have extra configuration options that you can set up for additional control over the display of a particular block. The Glossary:Random block is shown as an example below. Note that it still has all of the general block configuration options, but it also has some additional ones at the top of the panel. If there are blocks that have enhanced configurations, they will be detailed in their respective module sections within this book.
Custom blocks can be created, in addition to the default blocks that already exist in the system.
Custom blocks can contain all of the same content that the Body area of your nodes contain. Keep in mind, though, that blocks that are placed into a narrow area, such as a sidebar, will require narrower content. Digital assets such as images and video players will not automatically resize to fit in a narrower area so you must resize them accordingly or the item will spill over the edges of the block.
There are a couple of different ways that you can add a block...
If you are not already within the Blocks manager, you can add a block directly from the Admin menu by going to Admin menu > Site building > Blocks.
If you are already in the Block manager, just click on the Add block tab at the top of the page.
Once inside the Add block panel you will note that it looks very similar to a node submission form in the fact that it has a Body field with a WYSIWYG toolbar and the Input Format fieldset.
The only real difference between a custom block and the default settings you see on something like a simple menu block is the presence of the Body field. All other default block configurations, as described in the General Block Configuration section of this manual, are present.
Enabling a block simply means to "turn it on". The way to turn on a block in Drupal is to place it in a region via the Blocks manager.
Note, if you will be configuring your block, it's best to do your configurations first, save them, and then enable the block.
To enable a block, just do the following:
Go to the Blocks manager at Admin menu > Site building > Blocks.
Locate the block you wish to enable in the Disabled list towards the bottom of the screen. In the corresponding drop-down menu, select the region in which you would like to place the block. Once you select the region, it seems as if the block "disappears", but it's not gone - it just moves itself to the region you directed to move to when you made the selection.
If there are multiple blocks in the region and you want to adjust the order of the block in relation to the others, just grab the directional "handle" of your block and drag it up or down accordingly.
Click the Save blocks button at the bottom of the screen.